egg-wantu

1.0.0 • Public • Published

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

/egg-wantu/

    Package Sidebar

    Install

    npm i egg-wantu

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    7.16 kB

    Total Files

    6

    Last publish

    Collaborators

    • linjilei