mirror of https://github.com/jkjoy/sunpeiwen.git
5d2d87c740 | ||
---|---|---|
.. | ||
index.d.ts | ||
index.js | ||
license | ||
package.json | ||
readme.md |
readme.md
unique-string
Generate a unique random string
Install
$ npm install unique-string
Usage
const uniqueString = require('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.
License
MIT © Sindre Sorhus