Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.