nyprm
๐ Registry manager for npm, pnpm, yarn, bun and deno
Install#
Requires Node.js 22.13 or later. None of the package managers need to be installed: nyprm edits their config files directly.
Usage#
Config files#
With --local, the same files in the current directory are used (bunfig.toml without the dot). .yarnrc.yml is written there only for yarn 2+ projects.
- Only the registry line changes. Auth tokens, scoped registries and other settings are kept.
- Before a file changes, the previous version is saved next to it as
<file>.nyprm.bak. NPM_CONFIG_USERCONFIGandXDG_CONFIG_HOMEare honored.- pnpm reads the registry from
~/.npmrcbefore its ownauth.ini, so~/.npmrcis enough.
Development#
Release#
bumpp bumps the version, commits, tags and pushes. The tag triggers the release workflow, which stages the package on npm with trusted publishing (provenance included) and creates a GitHub release with changelogithub. The version goes live after a maintainer approves it with 2FA on the package's Staged Packages tab on npmjs.com, or with npm stage approve <stage-id>.
License#
MIT ยฉ tlyboy