Irina Glushko 2389e7160b HW1 done 3 年之前
..
index.js 2389e7160b HW1 done 3 年之前
license 2389e7160b HW1 done 3 年之前
package.json 2389e7160b HW1 done 3 年之前
readme.md 2389e7160b HW1 done 3 年之前

readme.md

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.

Related

License

MIT © Sindre Sorhus