forgeplus-react/node_modules/crypto-random-string
zhiyuanliu cb17bad1d4 activity visualize step one 2023-07-29 06:19:10 -07:00
..
index.js activity visualize step one 2023-07-29 06:19:10 -07:00
license activity visualize step one 2023-07-29 06:19:10 -07:00
package.json activity visualize step one 2023-07-29 06:19:10 -07:00
readme.md activity visualize step one 2023-07-29 06:19:10 -07:00

readme.md

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