@felix-ongom/randomize

1.0.1 • Public • Published

randomize

This is a js library that can generate random string of length 10 by default.

const {randomize} = require('randomize')
randomize()  //Xje039HD39V

To overide the default length, pass the optional length as parameter like .

randomize(5)  //b4s2Y
randomize(3)  //H3x

You may be wondering how ypu would randomize ypur own string, it's simple pass your string as second parameter

randomize(3, 'helo')  //eho
randomize(5, 'Helo')  //oHleH
randomize(null, 'Helo')  //HleHhholeo

Readme

Keywords

none

Package Sidebar

Install

npm i @felix-ongom/randomize

Weekly Downloads

6

Version

1.0.1

License

MIT

Unpacked Size

1.71 kB

Total Files

3

Last publish

Collaborators

  • felix-ongom