/ archiveofbelonging.org / back / node_modules / gud /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[TXT]README.md7 years ago472 f12eb36 documentaiton updates [كارل مبارك]
[   ]index.js7 years ago139  
[   ]package.json2 years ago1.5K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
README.md

gud

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

Install

yarn add gud

Usage

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.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80