shibu
v1.0.2
Published
a package made so that i don't keep on re-writing my functions
Downloads
12
Readme
This is a npm package so that I can just use this instead of my normal files. It's lazy, ik but yeah.
if you use this, why do you want to live in pain?
Contents:
.formatBytes(input)
formats a number of bytes into kilobytes, megabytes, gigabytes and terabytes
e.g.: formatBytes(1000) // 1KB
.toOrdinal(number)
adds the number's respected ordinal to the number
e.g: toOrdinal(2) //2nd
.generateKey(number)
generates a randomized key
e.g.: generateKey(4) //e3kF
.toCapital(string)
capitalizes a string
e.g.: toCapital("hello") //Hello