stupa-pdf-api/frontend/node_modules/crypto-random-string
2025-09-01 01:50:35 +02:00
..
index.d.ts Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
index.js Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
license Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
package.json Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02:00
readme.md Main Features working; Further Debugging needed 2025-09-01 01:50:35 +02: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