Any utils for Bejibun Framework.
Install the package.
# Using Bun
bun add @bejibun/utils
# Using Bejibun
bun ace install @bejibun/utilsList of available functions.
isEmpty()Check if variable is emptyisNotEmpty()Check if variable is not emptydefineValue()Define value if empty use default valueask()Command promptisCommandExists()Check if command availableisModuleExists()Check if module installed
Enum.setEnums(enums).getKey()Get key by value.Enum.setEnums(enums).getValue()Get value by key.Enum.setEnums(enums).toArray()Convert enums into an array.Enum.setEnums(enums).hasValue()Checks if the enum contains the specified value.Enum.setEnums(enums).hasKey()Checks if the enum contains the specified key.
Str.toLowerCase()Convert string to lowerStr.toPascalCase()Convert string to pascal caseStr.toUpperCase()Convert string to upperStr.random()Generate random stringStr.ipToFileName()Convert IP to correct filename
Luxon.datetime-> DateTimeLuxon.duration-> DurationLuxon.interval-> Interval
Object.serialize()Convert values into actual valueObject.parseFormData()Convert form data into object and auto serialize
If you find this project helpful and want to support it:
Or you can buy this $BJBN (Bejibun) tokens here.
