Projekt

Obecné

Profil

Stáhnout (472 Bajtů) Statistiky
| Větev: | Revize:
1
# gud
2

    
3
> Create a 'gud nuff' (not cryptographically secure) globally unique id
4

    
5
## Install
6

    
7
```
8
yarn add gud
9
```
10

    
11
## Usage
12

    
13
```js
14
const gud = require('gud');
15

    
16
console.log(gud()); // 1
17
console.log(gud()); // 2
18
```
19

    
20
This is ever so slightly better than using something like `_.uniqueId` because
21
it will work across multiple copies of the same module.
22

    
23
Do not use this in place of actual UUIDs, security folks will hate me.
24

    
25
This will not be unique across processes/workers.
(1-1/3)