Skip to content

abranhe/r4nd0mstr1ng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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