This package has been deprecated

Author message:

NoLongerUsed

cryptorandomstring

1.0.0 • Public • Published

cryptorandomstring Build Status

Generate a cryptographically strong random string

Can be useful for creating an identifier, slug, salt, fixture, etc.

Install

$ npm install --save cryptorandomstring

Usage

const cryptoRandomString = require('crypto-random-string');
 
cryptoRandomString(10);
//=> '2cf05d94db'

API

cryptoRandomString(length)

length

Type: number

Length of the returned string.

License

MIT © Yoginth

Package Sidebar

Install

npm i cryptorandomstring

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • npm