ids
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    39,775
    • latest
  • 2.0.1
    0
    • next

Version History

Package Sidebar

Install

npm i ids

Weekly Downloads

66,016

Version

1.0.5

License

MIT

Unpacked Size

72.2 kB

Total Files

17

Last publish

Collaborators

  • vsgoulart
  • skaiir-camunda
  • marstamm
  • bpmn-io-admin
  • nikku
  • barmac
  • philippfromme
  • maxtru
  • iso50