chrisdrakeford 9c87c1307d first commit | 3 лет назад | |
---|---|---|
.. | ||
index.d.ts | 3 лет назад | |
index.js | 3 лет назад | |
license | 3 лет назад | |
package.json | 3 лет назад | |
readme.md | 3 лет назад |
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