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

@billdaddy/casekit

v0.1.1

Published

Tiny, type-safe case conversion — camel/snake/kebab/Pascal/CONSTANT/title, acronym-aware word splitting, and deep object-key transformers. Zero dependencies.

Readme

casekit

All Contributors

Tiny, type-safe case conversion — camel / snake / kebab / Pascal / CONSTANT / title, acronym-aware splitting, and deep object-key transformers. Zero dependencies.

CI npm version bundle size types license

Every codebase ends up with a toSnake/toCamel helper that almost works — until it hits parseHTTPSResponse or a nested API payload. casekit does the word-splitting correctly (acronyms included), gives you every common case, and — the part most libraries skip — recursively rewrites object keys so a snake_case API response becomes idiomatic camelCase. Zero dependencies.

import { camelCase, camelKeys } from "@billdaddy/casekit";

camelCase("parseHTTPSResponse");                       // "parseHttpsResponse"
camelKeys({ user_id: 1, home_address: { zip_code: 0 } });
// { userId: 1, homeAddress: { zipCode: 0 } }

Why casekit?

  • Correct word splitting. Understands camelCase, PascalCase, snake_case, kebab-case, spaces, digits, and acronym runs (XMLHttpRequestXML · Http · Request).
  • Every common case. camel, Pascal, snake, kebab, CONSTANT, dot, path, Title, Sentence, and no case.
  • Deep key transformers. camelKeys / snakeKeys / kebabKeys / pascalKeys / constantKeys recurse through objects and arrays — immutable, and they drop prototype-pollution keys.
  • Unicode-aware. Splits on real letter/number boundaries, so accented text works.
  • Typed & tiny. Full types, ESM + CJS, zero dependencies.

Install

npm install @billdaddy/casekit
# or: pnpm add @billdaddy/casekit  /  yarn add @billdaddy/casekit  /  bun add @billdaddy/casekit

String cases

import {
  camelCase, pascalCase, snakeCase, kebabCase, constantCase,
  dotCase, pathCase, titleCase, sentenceCase, noCase, words,
} from "@billdaddy/casekit";

camelCase("foo_bar");        // "fooBar"
pascalCase("foo-bar");       // "FooBar"
snakeCase("fooBar");         // "foo_bar"
kebabCase("FooBar");         // "foo-bar"
constantCase("fooBar");      // "FOO_BAR"
dotCase("fooBar");           // "foo.bar"
pathCase("fooBar");          // "foo/bar"
titleCase("foo_bar");        // "Foo Bar"
sentenceCase("foo_bar");     // "Foo bar"
noCase("fooBarBaz");         // "foo bar baz"

words("parseHTTPSResponse"); // ["parse", "HTTPS", "Response"]

All converters accept any casing as input and are idempotent.

Object keys

import { camelKeys, snakeKeys } from "@billdaddy/casekit";

// Normalize an API response to idiomatic JS:
const user = camelKeys(await res.json());
// { userId, homeAddress: { zipCode }, orderItems: [{ itemId }] }

// Serialize back to the API's convention:
const body = snakeKeys({ userId: 1, homeAddress: { zipCode: "x" } });
// { user_id: 1, home_address: { zip_code: "x" } }
interface KeysOptions {
  deep?: boolean; // recurse into nested objects/arrays (default true)
}

Date, Map, class instances, and other non-plain values pass through by reference; only plain-object keys are rewritten.

Pairs well with

| Need | Use | | --- | --- | | Slugify text for URLs | slugkit | | Deep merge config objects | @billdaddy/mergekit | | Deep equal / clone | equalkit |

Contributors ✨

This project follows the all-contributors specification. Contributions of any kind are welcome — code, docs, bug reports, ideas, reviews! See the emoji key for how each contribution is recognized, and open a PR or issue to get involved.

Thanks goes to these wonderful people:

License

MIT © Tung Tran