Socket
Book a DemoInstallSign in
Socket

@isayme/bark

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@isayme/bark

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

0.3.0
latest
npmnpm
Version published
Maintainers
1
Created
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

Bark

FAQs

Package last updated on 03 Jan 2024

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.