jstd-web/node_modules/ids
liang.chao ae9cf31198 Initial commit 2025-11-25 15:23:22 +08:00
..
dist Initial commit 2025-11-25 15:23:22 +08:00
CHANGELOG.md Initial commit 2025-11-25 15:23:22 +08:00
LICENSE Initial commit 2025-11-25 15:23:22 +08:00
README.md Initial commit 2025-11-25 15:23:22 +08:00
index.d.ts Initial commit 2025-11-25 15:23:22 +08:00
package.json Initial commit 2025-11-25 15:23:22 +08:00

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.