zhibo/archive/extras/live-streaming/client/node_modules/crypto-random-string
2025-12-22 11:14:06 +08:00
..
index.d.ts chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
index.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
license chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
package.json chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
readme.md chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08: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 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