cirnornd

0.2.0 • Public • Published

Cirnornd.js

This nodejs module makes getting random integers/strings way easier!

Installation

npm install cirnornd

Docs

.randomInt(min, max)

returns a random integer inbetween min and max (both inclusive)

.randomString(lenght, symbols = false, numbers = true, upperCase = true, lowerCase = true)

returns a random string of a defined lenghth, it can include symbols, numbers, uppercase letters and lowercase letter, by default all of them are included excluding symbols.

Example of usage:

const cirno = require('cirnornd');
 
console.log(`Random string: ${cirno.randomString(20, true)}\nRandom Number: ${cirno.randomInt(0, 100)}`);

Check my Patreon!

/cirnornd/

    Package Sidebar

    Install

    npm i cirnornd

    Weekly Downloads

    1

    Version

    0.2.0

    License

    ISC

    Unpacked Size

    4.8 kB

    Total Files

    3

    Last publish

    Collaborators

    • yanderella