Frontend/25_03_11/frontend_vizsgafeladat/backend/node_modules/crypto-random-string
2025-03-11 12:57:30 +01:00
..
index.d.ts added orai 2025-03-11 12:57:30 +01:00
index.js added orai 2025-03-11 12:57:30 +01:00
license added orai 2025-03-11 12:57:30 +01:00
package.json added orai 2025-03-11 12:57:30 +01:00
readme.md added orai 2025-03-11 12:57:30 +01: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