0.1.1 • Published 1 year ago

judgemental v0.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

judgemental

Type-safe utility library for boolean checks on assorted data types

License Docs Issues Build Status codecov npm

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 = "foo@bar.com"
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
0.1.1

1 year ago

0.1.0

1 year ago