Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3 лет назад
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.