Back to articles
Introducing helping-js v2: A Zero-Dependency Utility Library to Level Up Your App

Introducing helping-js v2: A Zero-Dependency Utility Library to Level Up Your App

via Dev.to ReactParsa Jiravand

Introducing helping-js v2: A Zero-Dependency Utility Library to Level Up Your App TL;DR — helping-js is a lightweight JavaScript utility library with no dependencies. It adds type checkers, regex patterns, schema-based validation, and safe browser APIs that work in Node, Vue, React, Express, and the browser. In this post, we’ll see how it can simplify your code. Why helping-js? Zero dependencies — no extra packages Small — tree-shakeable, subpath imports Universal — Node (CJS/ESM), Vue, React, Express, Vite, Next.js, CRA, CDN TypeScript — .d.ts for all modules Validation — validate(obj, rules) without validator.js Installation npm install helping-js # or yarn add helping-js Module Overview 1. Type checkers ( helping-js/core/types ) Reliable type checks for common values: import { isString , isNumber , isArray , isPlainObject , isUndefinedOrNull , isNumeric , isPromise , } from ' helping-js/core/types ' ; isString ( ' hello ' ); // true isNumber ( 42 ); // true isArray ([ 1 , 2 ]); // t

Continue reading on Dev.to React

Opens in a new tab

Read Full Article
2 views

Related Articles