You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 5 година
1234567891011121314151617181920212223242526272829303132
  1. # unique-string [![Build Status](https://travis-ci.org/sindresorhus/unique-string.svg?branch=master)](https://travis-ci.org/sindresorhus/unique-string)
  2. > Generate a unique random string
  3. ## Install
  4. ```
  5. $ npm install unique-string
  6. ```
  7. ## Usage
  8. ```js
  9. const uniqueString = require('unique-string');
  10. uniqueString();
  11. //=> 'b4de2a49c8ffa3fbee04446f045483b2'
  12. ```
  13. ## API
  14. ### uniqueString()
  15. Returns a 32 character unique string. Matches the length of MD5, which is [unique enough](https://stackoverflow.com/a/2444336/64949) for non-crypto purposes.
  16. ## License
  17. MIT © [Sindre Sorhus](https://sindresorhus.com)