ids
Simple id generation and caching
Last updated 9 years ago by nikku .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install ids 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

10 Versions

  • 1.0.0                                ...           6 years ago
  • 0.2.2                                ...           6 years ago
  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           9 years ago
  • 0.1.2                                ...           9 years ago
  • 0.1.1                                ...           9 years ago
  • 0.1.0                                ...           10 years ago
  • 0.0.3                                ...           10 years ago
  • 0.0.2                                ...           10 years ago
  • 0.0.1                                ...           10 years ago
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (9)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |