1.0.2 • Published 6 years ago

egg-ip-search v1.0.2

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

egg-ip-search

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

Install

$ npm i egg-ip-search --save

Usage

// {app_root}/config/plugin.js
exports.ipSearch = {
  enable: true,
  package: 'egg-ip-search',
};
// {app_root}/controller/xxx.js
const location =  await this.ctx.getLocation();

Configuration

// {app_root}/config/config.default.js
exports.ipSearch = {
};

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

Example

Questions & Suggestions

Please open an issue here.

License

MIT