This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/crypto-random-string
2021-04-02 02:24:13 +03:00
..
2021-04-02 02:24:13 +03:00
2021-04-02 02:24:13 +03:00
2021-04-02 02:24:13 +03:00
2021-04-02 02:24:13 +03: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 --save crypto-random-string

Usage

const cryptoRandomString = require('crypto-random-string');

cryptoRandomString(10);
//=> '2cf05d94db'

API

cryptoRandomString(length)

length

Type: number

Length of the returned string.

License

MIT © Sindre Sorhus