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

omit-deep-ts

v1.0.0

Published

Drop-in Typescript replacement for omit-deep-lodash with no dependencies

Readme

omit-deep-ts

Drop-in TypeScript replacement for omit-deep-lodash with zero dependencies.

Recursively omit specified keys from objects, nested objects, and arrays of objects — fully typed and tree-shakeable.

Installation

pnpm add omit-deep-ts
npm install omit-deep-ts
yarn add omit-deep-ts

Usage

import { omitDeep } from "omit-deep-ts";

// Flat object
omitDeep({ a: 1, b: 2 }, "a");
// → { b: 2 }

// Nested objects
omitDeep({ a: 1, nested: { a: 2, b: 3 } }, "a");
// → { nested: { b: 3 } }

// Arrays of objects
omitDeep([{ a: 1, b: 2 }, { a: 3, b: 4 }], "a");
// → [{ b: 2 }, { b: 4 }]

// Multiple keys (array syntax)
omitDeep({ a: 1, b: 2, c: 3 }, ["a", "b"]);
// → { c: 3 }

// Multiple keys (variadic syntax — drop-in compatible with omit-deep-lodash)
omitDeep({ a: 1, b: 2, c: 3 }, "a", "b");
// → { c: 3 }

API

omitDeep<T>(input: T, props: string | string[], ...rest: string[]): T

Recursively removes the specified keys from input.

| Parameter | Type | Description | |-----------|------|-------------| | input | T | The object, array, or value to process. | | props | string \| string[] | Key(s) to omit. | | ...rest | string[] | Additional keys (variadic overload for drop-in compatibility). |

Returns a new deep copy of input with the specified keys removed. Primitives and undefined are returned unchanged. null values within objects are preserved as-is.

Features

  • Zero dependencies — no lodash, no runtime bloat
  • TypeScript-first — written in TypeScript with full type declarations
  • Dual format — ships both CommonJS (.js) and ESM (.mjs)
  • Source maps included
  • Drop-in compatible with omit-deep-lodash variadic API
  • Handles edge casesnull, undefined, primitives, deeply nested arrays

Development

Prerequisites

  • Node.js ≥ 24
  • pnpm ≥ 10.33.0

Tip: This project includes a mise.toml — if you use mise, the correct tool versions are installed automatically.

Scripts

pnpm run build       # Build with tsup (CJS + ESM + .d.ts)
pnpm run dev         # Build in watch mode
pnpm run test        # Run tests with Vitest
pnpm run typecheck   # Type-check without emitting
pnpm run lint        # Lint with Biome
pnpm run format      # Format with Biome
pnpm run check       # Lint + format (auto-fix)

Project Structure

omit-deep-ts/
├── src/
│   └── index.ts          # Library source
├── test/
│   └── index.test.ts     # Vitest tests
├── dist/                  # Build output (CJS, ESM, .d.ts, sourcemaps)
├── tsup.config.ts         # tsup bundler config
├── vitest.config.ts       # Vitest config
├── tsconfig.json          # TypeScript config
├── biome.json             # Biome linter/formatter config
└── package.json

License

MIT © Al Polinar