index.d.ts 388 B

12345678910111213141516
  1. /**
  2. Generate a unique random string.
  3. @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.
  4. @example
  5. ```
  6. import uniqueString = require('unique-string');
  7. uniqueString();
  8. //=> 'b4de2a49c8ffa3fbee04446f045483b2'
  9. ```
  10. */
  11. declare function uniqueString(): string;
  12. export = uniqueString;