• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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