@jswork/bark-jssdk
v1.0.6
Published
Bark sdk for js.
Downloads
66
Readme
bark-jssdk
Bark sdk for js.
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
- https://github.com/Finb/Bark
- https://js.work/works/ea5a6f14d03cc
- https://day.app/2021/06/barkfaq/
license
Code released under the MIT license.