Irina Glushko 2389e7160b HW1 done | 3 år sedan | |
---|---|---|
.. | ||
index.js | 3 år sedan | |
license | 3 år sedan | |
package.json | 3 år sedan | |
readme.md | 3 år sedan |
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