Irina Glushko 2389e7160b HW1 done | il y a 3 ans | |
---|---|---|
.. | ||
index.js | il y a 3 ans | |
license | il y a 3 ans | |
package.json | il y a 3 ans | |
readme.md | il y a 3 ans |
Generate a cryptographically strong random string
Can be useful for creating an identifier, slug, salt, fixture, etc.
$ npm install --save crypto-random-string
const cryptoRandomString = require('crypto-random-string');
cryptoRandomString(10);
//=> '2cf05d94db'
Type: number
Length of the returned string.
MIT © Sindre Sorhus