judgemental
v0.1.1
Published
Type-safe utility library for boolean checks on assorted data types
Downloads
1
Readme
judgemental
Type-safe utility library for boolean checks on assorted data types
Overview
judgemental is a library inspired by Apache Commons Lang3 which aims to provide a rich, comprehensive set of utility functions centered around but not limited to primitive data types. It aims to be a one stop shop for helper utilities needed to make day to day development seamless and help developers write lean, concise, and elegant code.
How do you install the library ?
npm i judgemental
How do you use the library
// sj: string judge
import { sj } from "judgemental";
// returns true
const myEmail = "[email protected]"
const isValidEmail = sj.isEmail(myEmail)
// returns false
const myBirthday = "19900101"
const isValidBirthday = sj.isDatetime(myBirthday)
// and so on ...
Methods
String
- containsWhitespace
- equalsIgnoreCase
- isAlpha
- isAlphaNumeric
- isBlank
- isCuid
- isDatetime
- isEmail
- isIp
- isIpV4
- isIpV6
- isJson
- isLowercase
- isNumeric
- isUlid
- isUppercase
- isUrl
- isUuid
- isWhitespace