Back to Explore

unjs/nypm

GitHub
1 updates · last 90 days1 watchersOpen source

Last release: 1 month ago

nypm is a unified package manager tool for Node.js (npm, pnpm, yarn), Bun, and Deno, providing a single API and a unified CLI. It can autodetect the project’s package manager using package.json and lockfiles, and it supports actions like installing, adding/removing dependencies, running package scripts, and deduping.

Project status

  • The source (unjs/nypm) appears actively maintained, with multiple recent tagged updates (v0.6.4 to v0.6.6) and an upstream push on 2026-06-07.
  • Apparent update cadence is fairly steady, with updates about every 2 to 5 weeks recently (Jan 20 to Feb 5, then Feb 5 to Apr 24).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v0.6.6

    1 month ago

    v0.6.6 is described as a fix for resolving a dependency's package.json when the dependency is a pure ESM package. The code changes expand the internal package.json resolution strategy, including new helper functions and a different peerDependencies lookup flow in addDependency.

  • v0.6.5

    4 months ago

    v0.6.5 primarily fixes dependency peer resolution by avoiding a direct require of a package.json path, plus migrates the project lint/format tooling from ESLint/Prettier to oxlint/oxfmt. The code diff also shows several behavioral edge-case changes around how peerDependencies are discovered, and updates dev tooling and dependency versions.

    Features
  • v0.6.4

    4 months ago

    Release v0.6.4 mainly adds a missing CLI entry point to the build output. The only code changes shown are build configuration and a version bump, with no API or dependency-related modifications visible in the diff.

    Features
  • v0.6.3

    4 months ago

    v0.6.3 focuses on smaller install size and build/tooling modernization. It also adds pnpm-specific workspace install controls and a new corepack toggle, while tightening types and simplifying the CLI output.

    BreakingFeatures
  • v0.6.2

    8 months ago

    v0.6.2 adds the ability to pass custom environment variables to script execution, and introduces a new `dlx` API along with extending `dlxCommand` to support downloading additional packages via a `packages` option. The core implementation threads an `env` option through command execution and adjusts how the underlying package-manager command is constructed (notably for npm).

    Features
  • v0.6.1

    10 months ago

    v0.6.1 adds a dry-run mode, improves CLI ergonomics (multiple package removal, passing extra args to runScript), and introduces command generator utility functions. Internally it also restructures the API to return an execution plan object (command and args) instead of only executing side effects.

    Features
  • v0.6.0

    2/25/2025

    v0.6.0 adds a new `runScript` utility and corresponding `nypm run` CLI command, plus several changes around command execution success detection and Yarn handling. The release also switches packaging to an ESM-only distribution and refactors internals by updating `pkg-types` and removing `ufo`.

    BreakingFeatures
  • v0.5.4

    2/20/2025

    v0.5.4 primarily adjusts corepack detection to better handle Stackblitz/webcontainer environments where corepack is not available. The release notes only mention the Stackblitz fix, but the actual diff also includes CI and dependency changes.

    Breaking
  • v0.5.2

    1/28/2025

    v0.5.2 is a small packaging change release. The only functional change shown in the diff is an update to the package.json `exports` map to improve TypeScript compatibility for both ESM (`import`) and CommonJS (`require`).

  • v0.5.1

    1/27/2025

    v0.5.1 enhances how nypm parses the packageManager field from package.json. It adds normalization (including handling build metadata separated by '+') and surfaces parsing issues as warnings that the CLI will log.

    Features