• Home
Name Date Size #Lines LOC

..--

index.jsD12-May-2024122 53

licenseD12-May-20241.1 KiB2217

package.jsonD12-May-20241.7 KiB7776

readme.mdD12-May-2024620 3317

readme.md

1# unique-string [![Build Status](https://travis-ci.org/sindresorhus/unique-string.svg?branch=master)](https://travis-ci.org/sindresorhus/unique-string)
2
3> Generate a unique random string
4
5
6## Install
7
8```
9$ npm install --save unique-string
10```
11
12
13## Usage
14
15```js
16const uniqueString = require('unique-string');
17
18uniqueString();
19//=> 'b4de2a49c8ffa3fbee04446f045483b2'
20```
21
22
23## API
24
25### uniqueString()
26
27Returns a 32 character unique string. Matches the length of MD5, which is [unique enough](http://stackoverflow.com/a/2444336/64949) for non-crypto purposes.
28
29
30## License
31
32MIT © [Sindre Sorhus](https://sindresorhus.com)
33