1.1.2 • Published 3 years ago

mgam-functions v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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
1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago