Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

3 anni fa
12345678910111213141516171819202122232425
  1. # gud
  2. > Create a 'gud nuff' (not cryptographically secure) globally unique id
  3. ## Install
  4. ```
  5. yarn add gud
  6. ```
  7. ## Usage
  8. ```js
  9. const gud = require('gud');
  10. console.log(gud()); // 1
  11. console.log(gud()); // 2
  12. ```
  13. This is ever so slightly better than using something like `_.uniqueId` because
  14. it will work across multiple copies of the same module.
  15. Do not use this in place of actual UUIDs, security folks will hate me.
  16. This will not be unique across processes/workers.