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

xdash

v0.5.14

Published

A lean TypeScript utility library designed for simplicity and performance.

Readme

xdash: The Lean, Mean, TypeScript Utility Machine 🚀

Build Faster, Smarter, and Lighter with xdash.

xdash: A Modular, Typed, and Extensible TypeScript Library

Tired of bloated utility libraries slowing you down? xdash is the antidote. We provide a meticulously crafted suite of highly performant, modular, and strongly-typed utilities specifically designed for the modern TypeScript developer. Stop fighting your tools and start building amazing things, faster.

Why Choose xdash? 🔥

xdash isn't just another utility library. It's a philosophy focused on developer efficiency and application performance:

  • Laser-Focused Modularity: 📦 Import only the functions you need. Keep your application lean and fast.
  • Aggressive Tree-Shaking: 🌳 Seamless integration with modern build tools like Vite, esbuild, and Webpack ensures minimal bundle size. No dead code, guaranteed.
  • Blazing Performance: ⚡ Every function is optimized for speed. We benchmark rigorously so you don't have to worry about bottlenecks.
  • Rock-Solid Typing: 🔒 Leverage the full power of TypeScript. Our strong types and type guards catch errors at compile time, not runtime, saving you precious debugging hours.
  • Zero Runtime Dependencies: 🚫 Absolutely no baggage. xdash adds only the code you use.
  • Modern Tooling: ✨ Built with Bun, tested with Jest, documented with VitePress & TypeDoc. We embrace the best of the modern web ecosystem.

Core Features 🛠️

  • Essential Utilities: A curated collection covering arrays, objects, strings, async operations, type checking, and more.
  • Functional Programming Inspired: Clean, predictable, and composable functions.
  • Chainable Interface: An optional, expressive way to link operations (x.chain(...)).
  • Inline Switch: A powerful alternative to traditional switch statements (x.InlineSwitch(...)).
  • Comprehensive Testing: High test coverage ensures reliability and stability.
  • Crystal-Clear Documentation: Easily searchable and navigable docs generated via VitePress.

Installation 💾

Integrate xdash into your project in seconds:

npm install xdash
# or
yarn add xdash
# or
pnpm add xdash
# or
bun install xdash

Quick Start Example ⚡

import { isStr, capitalize } from 'xdash';
// Or import the whole library
// import * as x from 'xdash';

let greeting = "hello, world!";

if (isStr(greeting)) {
  // capitalize is type-safe thanks to isStr!
  console.log(capitalize(greeting)); // Outputs: "Hello, world!"
}

// Chain example
const result = x.chain([1, 2, 3])
  .map(n => n * 2)
  .filter(n => n > 3)
  .sum() // Assuming sum is added or available
  .value(); // result = 10 (4 + 6)

console.log(result);

➡️ Explore the Full Documentation to discover all available utilities. (Note: Link points to GitHub Pages, deployment pending CI setup)

Contributing 🤝

Got an idea or found a bug? We welcome contributions! Help us make xdash even better. Please read our contribution guidelines (TODO: Create this file) to get started.

Support the Project ❤️

If xdash helps you build faster or saves you time, consider supporting its development:

License 📄

xdash is open-source software licensed under the MIT License.