Maik 605bfceacd module 3 yıl önce
..
index.d.ts 605bfceacd module 3 yıl önce
index.js 605bfceacd module 3 yıl önce
license 605bfceacd module 3 yıl önce
package.json 605bfceacd module 3 yıl önce
readme.md 605bfceacd module 3 yıl önce

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.

Related

License

MIT © Sindre Sorhus