|
|
há 3 anos atrás | |
|---|---|---|
| .. | ||
| dist | há 3 anos atrás | |
| CHANGELOG.md | há 3 anos atrás | |
| LICENSE | há 3 anos atrás | |
| README.md | há 3 anos atrás | |
| index.d.ts | há 3 anos atrás | |
| package.json | há 3 anos atrás | |
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.