Contribute to this project here https://github.com/magmabits/ffeu
This function generates a randomized string of characters with the provided length.
It has 4 different modes: "numberOnly", "upperCaseOnly", "lowerCaseOnly" and "default"
import { generateID, IDType } from "ffeu";
generateID(8) // "4h7s45ef"
generateID(8, IDType.NumberOnly) // "23461862"
generateID(8, IDType.UpperCaseOnly) // "AXDVASVW"
generateID(8, IDType.LowerCaseOnly) // "sdfewnzd"
This function returns the provided string but every word will start with capital letters.
toCapital("hello world, i am a function") // "Hello World, I Am A Function"
This function returns the provided number formated to bytes.
formatBytes(1000) // "1000 Bytes"
formatBytes(1024) // "1KB"
This function returns the provided number with their respective ordinal aka "place".
toOrdinal(1) // "1st"
toOrdinal(12) // "12th"
toOrdinal(22) // "22nd"
toOrdinal(33) // "33rd"
toOrdinal(4) // "4th"
This function returns the time that has elapsed since the start of the function and the provided time.
timeSince(1657621049) // "39 seconds ago"
timeSince(new Date()) // "2 seconds"