unique-string
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

unique-string

Generate a unique random string

Install

$ npm install unique-string

Usage

import uniqueString from 'unique-string';

uniqueString();
//=> 'b4de2a49c8ffa3fbee04446f045483b2'

API

uniqueString()

Returns a 32 character unique string. Matches the length of MD5, which is unique enough for non-crypto purposes.

Dependents (485)

Package Sidebar

Install

npm i unique-string

Weekly Downloads

13,367,323

Version

3.0.0

License

MIT

Unpacked Size

2.79 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus