New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

judgemental

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

judgemental

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

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 02 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts