/cid

Super simple client-id generator

Primary LanguageJavaScriptMIT LicenseMIT

cid

Circle CI

🎲 Generates a unique id on the client. Uses timestamp, random number, and increments.

Install

npm install --save @nymag/cid

Usage

This library exports both es2015-style modules and regular old commonjs modules, so you can use browserify, rollup, or webpack to include it client-side.

Contributing

Please do! Create a pull request with a failing unit test, and we'll figure out what's up.