Shannon_mu 9ea635a2dc 停车场 2 years ago
..
test 9ea635a2dc 停车场 2 years ago
.eslintrc 9ea635a2dc 停车场 2 years ago
.travis.yml 9ea635a2dc 停车场 2 years ago
CHANGELOG.md 9ea635a2dc 停车场 2 years ago
LICENSE 9ea635a2dc 停车场 2 years ago
README.md 9ea635a2dc 停车场 2 years ago
index.d.ts 9ea635a2dc 停车场 2 years ago
index.js 9ea635a2dc 停车场 2 years ago
package.json 9ea635a2dc 停车场 2 years ago

README.md

ids

Build Status

A simple caching id generation utility.

Usage

var Ids = require('ids');

var ids = new Ids();

var next = ids.next(); // returns id

ids.claim('f71a81'); // claim id as already existing

ids.assigned('f71a81'); // true if id was already generated / claimed

Get the library

Fetch it via npm:

npm install --save ids

License

Use under the terms of the MIT license.