chrisdrakeford 9c87c1307d first commit | 3 éve | |
---|---|---|
.. | ||
index.d.ts | 3 éve | |
index.js | 3 éve | |
license | 3 éve | |
package.json | 3 éve | |
readme.md | 3 éve |
Generate a cryptographically strong random string
Can be useful for creating an identifier, slug, salt, fixture, etc.
$ npm install crypto-random-string
const cryptoRandomString = require('crypto-random-string');
cryptoRandomString(10);
//=> '2cf05d94db'
Returns a hex
string.
Type: number
Length of the returned string.
MIT © Sindre Sorhus