egg-uuid-int
v2.0.2
Published
uuid-int for eggjs
Downloads
13
Readme
egg-uuid-int
Install
$ npm i egg-uuid-int --save
Usage
// {app_root}/config/plugin.js
exports.uuint = {
enable: true,
package: 'egg-uuid-int'
};
Configuration
// {app_root}/config/config.default.js
exports.uuint = {
id: 0, // 0-511
seed: 156015570 // a time
};
see config/config.default.js for more detail.
Example
const uuid = app.uuint.uuid(); // a int uuid