JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 46285
  • Score
    100M100P100Q149824F
  • License MIT

Simple id generation and caching

Package Exports

  • ids

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ids) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.