gud

1.0.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1,985,959
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1,985,959

Package Sidebar

Install

npm i gud

Weekly Downloads

1,985,959

Version

1.0.0

License

MIT

Unpacked Size

1.16 kB

Total Files

3

Last publish

Collaborators

  • thejameskyle