Skip to content
Simple id generation and caching
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.eslintignore
.eslintrc
.gitignore
.npmignore
.npmrc
.travis.yml
CHANGELOG.md
LICENSE
README.md
index.d.ts
index.js
package.json

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.

You can’t perform that action at this time.