tra-analysis/website/functions/node_modules/crypto-random-string
2019-01-06 13:14:45 -06:00
..
index.js push all website files 2019-01-06 13:14:45 -06:00
license push all website files 2019-01-06 13:14:45 -06:00
package.json push all website files 2019-01-06 13:14:45 -06:00
readme.md push all website files 2019-01-06 13:14:45 -06:00

crypto-random-string Build Status

Generate a cryptographically strong random string

Can be useful for creating an identifier, slug, salt, fixture, etc.

Install

$ npm install --save crypto-random-string

Usage

const cryptoRandomString = require('crypto-random-string');

cryptoRandomString(10);
//=> '2cf05d94db'

API

cryptoRandomString(length)

length

Type: number

Length of the returned string.

License

MIT © Sindre Sorhus