Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nymag/cid
Super simple client-id generator
https://github.com/nymag/cid
Last synced: 28 days ago
JSON representation
Super simple client-id generator
- Host: GitHub
- URL: https://github.com/nymag/cid
- Owner: nymag
- License: mit
- Created: 2016-04-07T15:19:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-07T15:52:47.000Z (almost 9 years ago)
- Last Synced: 2024-11-30T06:16:37.564Z (about 2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 43
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cid
[![Circle CI](https://circleci.com/gh/nymag/cid.svg?style=svg)](https://circleci.com/gh/nymag/cid)
🎲 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](http://www.2ality.com/2014/09/es6-modules-final.html) 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.