@nymag/cid

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

Usage no npm install needed!

<script type="module">
  import nymagCid from 'https://cdn.skypack.dev/@nymag/cid';
</script>

README

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.