dijkstra-backend-cloudron/node_modules/crypto-random-string
rui hildt 4f5db9ab26 Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02:00
..
index.js Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02:00
license Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02:00
package.json Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02:00
readme.md Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02: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