judgemental

0.1.1 • Public • Published

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

/judgemental/

    Package Sidebar

    Install

    npm i judgemental

    Weekly Downloads

    0

    Version

    0.1.1

    License

    Apache-2.0

    Unpacked Size

    504 kB

    Total Files

    51

    Last publish

    Collaborators

    • asharnadeem