yudao-ui-admin-vue3/node_modules/.pnpm/ids@1.0.5/node_modules/ids
蒋俊鸿 83cb92151a first commit 2025-04-07 17:42:53 +08:00
..
dist first commit 2025-04-07 17:42:53 +08:00
CHANGELOG.md first commit 2025-04-07 17:42:53 +08:00
LICENSE first commit 2025-04-07 17:42:53 +08:00
README.md first commit 2025-04-07 17:42:53 +08:00
index.d.ts first commit 2025-04-07 17:42:53 +08:00
package.json first commit 2025-04-07 17:42:53 +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.