Skip to content

wbget/egg-uuid-int

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published