2.0.2 • Published 3 years ago

egg-uuid-int v2.0.2

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

egg-uuid-int

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

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

License

MIT

2.0.2

3 years ago

2.0.1

3 years ago

1.0.1

5 years ago