egg-jpush

1.0.0 • Public • Published

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

/egg-jpush/

    Package Sidebar

    Install

    npm i egg-jpush

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    7.31 kB

    Total Files

    7

    Last publish

    Collaborators

    • reezon