|
il y a 2 ans | |
---|---|---|
.. | ||
test | il y a 2 ans | |
.eslintrc | il y a 2 ans | |
.travis.yml | il y a 2 ans | |
CHANGELOG.md | il y a 2 ans | |
LICENSE | il y a 2 ans | |
README.md | il y a 2 ans | |
index.d.ts | il y a 2 ans | |
index.js | il y a 2 ans | |
package.json | il y a 2 ans |
A simple caching id generation utility.
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
Fetch it via npm:
npm install --save ids
Use under the terms of the MIT license.