package
Create a 'gud nuff' (not cryptographically secure) globally unique id
npm install gudGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
1.1 kB
Includes dependencies.
Create a 'gud nuff' (not cryptographically secure) globally unique id
yarn add gudconst gud = require('gud');
console.log(gud()); // 1
console.log(gud()); // 2This 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.