pyxjs2
v1.2.2
Published
a utils package
Downloads
3
Readme
PyxJS2
This Module provides Utilities to help code. It requires Node.js 10.13.0 (LTS Dubnium) or later.
Installation
npm install pyxjs2
Usage
const PyxJS = require('pyxjs2')
console.log(PyxJS.format(1000000, 2))
//expected output: 1.00m
console.log(PyxJS.format(436543, 1))
//expected output: 436.5k
console.log(PyxJS.list(["pyxel", "Pyxel", "Arrays", "Only"])
//expected outpu: 'pyxel, Pyxel, Arrays, and Only'
console.log(PyxJS.rNum(12, 20))
//provides a random number between 12 and 20
And much more
Find out more on the documentation!
~~which doesnt exsist~~