|
hace 2 años | |
---|---|---|
.. | ||
test | hace 2 años | |
.eslintrc | hace 2 años | |
.travis.yml | hace 2 años | |
CHANGELOG.md | hace 2 años | |
LICENSE | hace 2 años | |
README.md | hace 2 años | |
index.d.ts | hace 2 años | |
index.js | hace 2 años | |
package.json | hace 2 años |
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.