tech4biz/chat_server/node_modules/crypto-random-string
2024-10-25 17:11:31 +05:30
..
index.d.ts completed sitemap 2024-10-25 17:11:31 +05:30
index.js completed sitemap 2024-10-25 17:11:31 +05:30
license completed sitemap 2024-10-25 17:11:31 +05:30
package.json completed sitemap 2024-10-25 17:11:31 +05:30
readme.md completed sitemap 2024-10-25 17:11:31 +05:30

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