Home

Awesome

bark-jssdk

Bark sdk for js.

version license size download

installation

npm install @jswork/bark-jssdk

usage

import BarkJssdk from '@jswork/bark-jssdk';

// use instance
const sdk = new BarkJssdk({ sdkKey: 'YOUR_SDK_KEY'});
// notify
sdk.notify({ title: 'Tips', body: 'New message comming.' });

// OR use BarkJssdk.notify directly
BarkJssdk.notify({
  sdkKey: 'YOUR_SDK_KEY',
  title: 'Tips', 
  body: 'New message comming.'
});

resources

license

Code released under the MIT license.