/r4nd0mstr1ng

r4nd0mstr1ng : ๐ŸŒ€ Random String Generator

Primary LanguageJavaScriptMIT LicenseMIT


r4nd0mstr1ng

๐ŸŒ€Random String Generator

Install

$ npm install r4nd0mstr1ng

Usage

const rand = require('r4nd0mstr1ng');

console.log(rand());
//=> 'HH9ICHiBSjKnK219w3R6eKgI58ffMW'

console.log(rand(7));
//=> 'dsdfGf4'

API

rand()

Return Type: string
Default: 30

Return an string with default value of 30

rand(number)

Return Type: string

Return an string with custom length

Related

  • random-string-cli: CLI for this module
  • all-words: Generate all available words (up to four letters) super fast.
  • randn: ๐Ÿ”ข Random number generator.

License

MIT ยฉ Carlos Abraham