![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | README.md | 7 years ago | 472 | d7c1522 post receive test [كارل مبارك] |
![]() | index.js | 7 years ago | 139 | |
![]() | package.json | 2 years ago | 1.5K |
Create a 'gud nuff' (not cryptographically secure) globally unique id
yarn add gud
const gud = require('gud');
console.log(gud()); // 1
console.log(gud()); // 2
This is ever so slightly better than using something like _.uniqueId
because
it will work across multiple copies of the same module.
Do not use this in place of actual UUIDs, security folks will hate me.
This will not be unique across processes/workers.