fleet-docs/node_modules/crypto-random-string
divya-mohan0209 9de94a264c Initial commit 2022-09-22 09:54:31 +05:30
..
index.d.ts Initial commit 2022-09-22 09:54:31 +05:30
index.js Initial commit 2022-09-22 09:54:31 +05:30
license Initial commit 2022-09-22 09:54:31 +05:30
package.json Initial commit 2022-09-22 09:54:31 +05:30
readme.md Initial commit 2022-09-22 09:54:31 +05:30

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 crypto-random-string

Usage

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

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

API

cryptoRandomString(length)

Returns a hex string.

length

Type: number

Length of the returned string.

License

MIT © Sindre Sorhus