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

@evatrium/utils

v1.4.0

Published

JavaScript Utilities

Downloads

6

Readme

Usage

import { capitalize, debounce, deepMerge } from '@evatrium/utils';

Exports

  • (casing):
    • capitalize:
      • foo bar => Foo bar
    • deKabab:
      • foo-bar => foo bar
    • sentenceCase:
      • foo bar => Foo Bar
    • deSnake:
      • foo_bar => foo bar
    • snakeToSentenceCase
      • foo_bar => Foo Bar
  • combineArraysAndDeduplicate:
    • combines two simple or nested object arrays
    • deduplicates items with matchBy option
  • createLocalStore:
    • creates local storage wrapper that auto parses and stringifies values
    • includes method for debouncing setItem
    • includes method for subscribing to storage event
  • createSubscription:
    • creates a pub sub
  • debounce:
    • wraps provided function in a debounce
  • deepCopy:
    • deep copies nested objects and arrays
    • intended for serializable data for state trees and json
    • will handle additional types like dates, maps and sets
  • deepMerge:
    • deep copies nested objects and arrays
    • intended for serializable data for state trees and json
    • handle additional types like dates, maps and sets
  • endpoint:
    • experimental rest endpoint syntax
  • eventListener:
    • wrapper for event listener that returns a function to unlisten
  • excludeItemsFromArray:
    • excludes items from simple and nested object arrays
    • customize equivalence with matchBy option
  • findInArray:
    • internal helper paired with matchBy
  • (getInSetIn):
    • getIn:
      • 'dot.walk' to retrieve a value from a nested object or array
    • setIn:
      • 'dot.walk' to set a value in a nested object or array
  • getItemsThatExistInBothArrays:
    • get the intersection of two arrays
    • customize equivalence with matchBy option
  • getMatchBy:
    • internal helper that accepts options for returning equivalence comparison func
  • getParams:
    • retrieve location.search params as an object
  • getTotalOfPropInObjArr:
    • aggregate the total number value on a property on each item in an object array
  • groupObjArrByProp:
    • groups/categorizes items in an object array based on a provided prop name
  • hasKeys:
    • checks if an object is empty
  • includesAll:
    • checks if arr1 includes all items from arr2
    • customize equivalence with matchBy option
  • isEmpty:
    • checks if an array or object is empty
    • checks if maps and set size are 0
    • otherwise: falsyValue ? true : false
  • isEqual:
    • checks if two nested objects or arrays are equal
    • handles primitives (JSON-like data) in addition to date objects
  • (isType):
    • isObjectType:
      • typeof === 'object':
    • isObject:
      • typeof === 'object'
      • and not null
    • isObj:
      • typeof === 'object'
      • not null
      • not Array
      • constructor is Object (aka plain object "{ }")
    • isObjOrArr
      • isArray && isObj
    • isBigInt
    • isBool
    • isDateObject
    • isFunc
    • isMap
    • isNullOrUndefined
    • isNum
    • isPrimitive
    • isPromise
    • isRegExp
    • isSet
    • isString
  • isWeb:
    • checks if window is defined
  • jsonParse:
    • safely parses stringified json => { data, error }
  • memoize:
    • memorizes the result of a function
    • returns cached result if arguments are the same
  • pluck:
    • pluck values from an object
  • propsChanged:
    • fast shallow object key compare
  • shallowEqual:
    • shallow compare two values
  • signature:
    • fast stringify / hash-like
  • toggleSelection:
    • adds item to list if it does not exist
    • removes item from list if it exists
    • customize equivalence with matchBy option
  • stringifyParams:
    • convert a plain object into a url-safe query params string
  • tryCatch:
    • wraps an async func in a try catch
    • returns { data, error }
  • updateMany:
    • update multiple items in an object array
    • customize equivalence with matchBy option
  • url:
    • url`foo/bar?${id:1,hey:'yo'}` => 'foo?id=1&hey=yo'
  • wait:
    • pause execution inside the body of an async func

    • await wait(100);

License

MIT