1.0.0 • Published 6 years ago

egg-jpush v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

egg-jpush

NPM version build status Test coverage David deps Known Vulnerabilities npm download

egg plugin for jpush

Install

$ npm i egg-jpush --save

Dependencies

Usage

// {app_root}/config/plugin.js
exports.jpush = {
  enable: true,
  package: 'egg-jpush',
};

Configuration

// {app_root}/config/config.default.js
exports.jpush = {
  appKey: '',
  masterSecret: '',
  appName: '',
  isDebug: true
};

see config/config.default.js for more detail.

Example

await this.app.jpush.sendToOne('120c83f7601980a06c3', 'hello world')

Questions & Suggestions

Please open an issue here.

License

MIT