egg-jpush-demo

[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down

Usage no npm install needed!

<script type="module">
  import eggJpushDemo from 'https://cdn.skypack.dev/egg-jpush-demo';
</script>

README

egg-jpush

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

egg plugin for jpush

Install

$ npm i egg-jpush-demo --save

Dependencies

Usage

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

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