|
|
%!s(int64=5) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| index.d.ts | %!s(int64=5) %!d(string=hai) anos | |
| index.js | %!s(int64=5) %!d(string=hai) anos | |
| license | %!s(int64=5) %!d(string=hai) anos | |
| package.json | %!s(int64=5) %!d(string=hai) anos | |
| readme.md | %!s(int64=5) %!d(string=hai) anos | |
Generate a cryptographically strong random string
Can be useful for creating an identifier, slug, salt, fixture, etc.
$ npm install crypto-random-string
const cryptoRandomString = require('crypto-random-string');
cryptoRandomString(10);
//=> '2cf05d94db'
Returns a hex string.
Type: number
Length of the returned string.
MIT © Sindre Sorhus