npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

helping-js

v3.0.0

Published

helping-js: zero-dependency JavaScript utilities — type guards, 50+ regex patterns, validate(), TypeScript .d.ts, v3 helpers (string, array, object, async, date, URL, tree, DOM). Official docs: https://helping-js.netlify.app

Readme

Documentation: helping-js.netlify.app (usage, helpers, form validation, regex). v3 adds optional helper modules (helping-js/core/number, core/string, core/array, core/object, core/async, core/date, …). See CHANGELOG.md and docs/HELPER_INVENTORY.md.

Helper modules (subpath imports)

| Export path | Contents (summary) | | --- | --- | | helping-js/core/number | randInt, randChoice, between, strPad, … | | helping-js/core/string | camelCase, kebabCase, randString, … | | helping-js/core/value | isEmptyValue | | helping-js/core/array | arrayDiff, splitArray, arrayDistinct, … | | helping-js/core/object | dotGet, dotSet, objectOnly, … | | helping-js/core/function | resolveValueOrGetter, mapObjectTree, … | | helping-js/core/async | debounceTrailing, debounceImmediate, retry, … | | helping-js/core/url | pathJoin, getUrlParam | | helping-js/core/date | parseISO, getCalendar, addDate, … | | helping-js/core/advanced | binarySearch, Cache, windowLoaded, … | | helping-js/core/tree | TreeData, walkTreeData | | helping-js/core/dom | DOM helpers (prefer not in Node-only SSR) |

Quick examples

import { strPad, between } from 'helping-js/core/number'
import { kebabCase, titleCase } from 'helping-js/core/string'
import { dotSet, dotGet } from 'helping-js/core/object'
import { debounceTrailing } from 'helping-js/core/async'
import { pathJoin } from 'helping-js/core/url'

dotSet({}, 'meta.version', 1)
console.log(kebabCase('UserName'), strPad('3', 2, '0')) // 'user-name', '03'

const search = debounceTrailing((q) => console.log(titleCase(q)), 250)
search('hello world')

console.log(pathJoin('/api', 'v1', 'users')) // '/api/v1/users'

Vue 3 — debounced input and nested config:

import { debounceTrailing } from 'helping-js/core/async'
import { dotGet } from 'helping-js/core/object'

const onInput = debounceTrailing((e) => {
  const q = e.target.value
  // search(q)
}, 300)
const base = dotGet(config, 'api.baseUrl') // e.g. from props or Pinia

React — distinct IDs and pagination chunks:

import { arrayDistinct, splitArray } from 'helping-js/core/array'
const unique = arrayDistinct(ids)
const pages = splitArray(unique, 20)

Express — path segments and numeric query checks:

const { pathJoin } = require('helping-js/core/url')
const { isNumeric } = require('helping-js/core/types')

const uploadRoot = pathJoin(__dirname, 'public', 'uploads')

app.get('/items', (req, res) => {
  const page = req.query.page
  if (page != null && !isNumeric(page)) {
    return res.status(400).json({ error: 'page must be numeric' })
  }
  res.json({ uploadRoot })
})

Full walkthrough: docs/docs/helpers/index.md. The doc site lists one page per module under Helpers (e.g. /helpers/number/, /helpers/async/) with API tables and samples.

Dependencies

  • No need Dependency

Installation

npm install helping-js --save
yarn add helping-js

Usage

  1. You can import in your js file es6 (modules,vue,react,...)
import { isString } from 'helping-js/core/types'

console.log(isString('test')) // true
console.log(isString(true)) // false
  1. You can import in your js file es5 (nodejs)
var { isString } = require('helping-js/core/types')

console.log(isString('test')) // true
console.log(isString(true)) // false
  1. You can use from CDN (ESM only). Pin a version for production: https://unpkg.com/helping-js@3/core/types.js
import { isString } from 'https://unpkg.com/helping-js/core/types.js'

console.log(isString('test')) // true
console.log(isString(true)) // false
  1. TypeScript: the package includes .d.ts files; types work automatically when you import from helping-js/core/*.

Validate forms

Lightweight validation without validator.js: use validate(obj, rules) with RegExp or predicate functions.

import { validate, RX_EMAIL, isNumber } from 'helping-js/preset/form';

const result = validate(
  { email: '[email protected]', age: 25 },
  { email: RX_EMAIL, age: isNumber }
);
// result.valid === true, result.errors === {}

// Or import only validate and use your own rules:
import { validate } from 'helping-js/core/validate';
import { RX_EMAIL } from 'helping-js/core/regex';

Rules can be a RegExp (tests String(value)) or a function (value) => boolean. Returns { valid: true, errors: {} } or { valid: false, errors: { field: false, ... } }.

Usage in your project

No extra config; install and import.

  • Node (CJS): const { isString } = require('helping-js/core/types');
  • Node (ESM): import { isString } from 'helping-js/core/types'; (use "type": "module" in package.json or .mjs extension).
  • Vite: import { isString } from 'helping-js/core/types';
  • Next.js: import { isString } from 'helping-js/core/types'; (client or server).
  • Create React App: import { isString } from 'helping-js/core/types';

Regex Usage

You can access all regex patterns from the helping-js/core/regex module. (More Than 50 Patterns)

Example usage:

import { RX_HASH } from "helping-js/core/regex";
const regex = RX_HASH;
const str = '#test';
console.log(regex.test(str)); // Output: true