1.0.0 • Published 6 years ago

egg-wantu v1.0.0

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

egg-wantu

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

Install

$ npm i egg-wantu --save

Usage

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

Configuration

// {app_root}/config/config.default.js
exports.wantu = {
  ak: 'your ak',
  sk: 'your sk',
  namespace: 'default namespace'
};

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

Example

const token = ctx.service.wantu.init('default space');
this.ctx.body = token;

Questions & Suggestions

Please open an issue here.

License

MIT