https://github.com/afeiship/bark-jssdk
Bark sdk for js.
https://github.com/afeiship/bark-jssdk
api bark message msg nodejs sdk
Last synced: 9 months ago
JSON representation
Bark sdk for js.
- Host: GitHub
- URL: https://github.com/afeiship/bark-jssdk
- Owner: afeiship
- License: mit
- Created: 2018-12-10T00:54:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T13:56:51.000Z (about 1 year ago)
- Last Synced: 2025-02-27T04:26:00.727Z (9 months ago)
- Topics: api, bark, message, msg, nodejs, sdk
- Language: TypeScript
- Homepage:
- Size: 74.2 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# bark-jssdk
> Bark sdk for js.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```shell
npm install @jswork/bark-jssdk
```
## usage
```js
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](https://github.com/afeiship/bark-jssdk/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/bark-jssdk
[version-url]: https://npmjs.org/package/@jswork/bark-jssdk
[license-image]: https://img.shields.io/npm/l/@jswork/bark-jssdk
[license-url]: https://github.com/afeiship/bark-jssdk/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/bark-jssdk
[size-url]: https://github.com/afeiship/bark-jssdk/blob/master/dist/bark-jssdk.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/bark-jssdk
[download-url]: https://www.npmjs.com/package/@jswork/bark-jssdk