Socket
Socket
Sign inDemoInstall

@isayme/bark

Package Overview
Dependencies
11
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @isayme/bark

Node SDK for Bark (https://bark.day.app/)


Version published
Weekly downloads
0
Maintainers
1
Install size
2.16 MB
Created
Weekly downloads
 

Readme

Source

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()

相关文档

Keywords

FAQs

Last updated on 03 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc