egg-hashids
hashids plugin for egg
Install
$ npm i egg-hashids --save
Usage
// {app_root}/config/plugin.jsexportshashids = enable: true package: 'egg-hashids';
Configuration
For more information, please read hashids.js document.
// {app_root}/config/config.default.jsexportshashids = projectName: '' minLength: 0 alphabet: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' app: true agent: false;
see config/config.default.js for more detail.
Example
thisapphashids; // => jRthisapphashids // => [ 1 ]
Questions & Suggestions
Please open an issue here.