1.1.1 • Published 1 year ago

@ogwen123/randjs v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

🎲 randjs

An npm package for randomly generating a wide range of thing like numbers, uuids, salts, etc. Also allows for randomizing data like arrays.

📖 Usage

Installation:

npm i randjs

Import:

import randjs from "randjs"

or

const randjs = require("randjs")

🔧 Functionality

Number

const number = randjs.number(length)

Number within a range - WIP

const number_range = randjs.numberWithinRange(max, min) 
//inclusive, min value not required and it will default to 0.

Number within a range - WIP

const shiffled_array = randjs.shuffle(array)
//inclusive, min value not required and it will default to 0.

UUID - WIP

36 Character UUID

const uuid = randjs.uuid()

18 Character UUID

const uuid_short = randjs.uuidShort()
1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago