Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isayme/node-bark-sdk
node sdk for [bark](https://bark.day.app/)
https://github.com/isayme/node-bark-sdk
Last synced: 12 days ago
JSON representation
node sdk for [bark](https://bark.day.app/)
- Host: GitHub
- URL: https://github.com/isayme/node-bark-sdk
- Owner: isayme
- License: mit
- Created: 2024-01-02T14:44:40.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-01-03T13:06:36.000Z (12 months ago)
- Last Synced: 2024-04-16T14:21:45.416Z (8 months ago)
- Language: TypeScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Node SDK for Bark (https://bark.day.app/)
# 特性
- 支持 Basic Auth;
- 支持加密推送;
- 自动重试, 默认 10 次;# 快速使用
## 安装
```
npm install '@isayme/bark'
或
pnpm add '@isayme/bark'
```## 引用模块
```
// CommonJS
const { Client } = require('@isayme/bark')// ESM & Typescript
import { Client } from '@isayme/bark'
```## 样例
```
let deviceKey = '你的 device key'let client = new Client({
deviceKey,
})async function main() {
await client.push('这是测试内容')
await client.push('这是测试标题', '这是测试内容')
await client.push({
title: '这是测试标题',
body: '这是测试内容',
})
}main()
```# 相关文档
- [Bark 官方文档](https://bark.day.app/)