moldau

Crates.iomoldau
lib.rsmoldau
version0.1.5
created_at2025-04-04 15:48:03.973793+00
updated_at2025-08-15 08:37:54.452497+00
descriptionModern version manager for Node.js package managers
homepagehttps://github.com/ryanccn/moldau
repositoryhttps://github.com/ryanccn/moldau.git
max_upload_size
id1620238
size215,976
Ryan Cao (ryanccn)

documentation

README

Moldau

Moldau is a modern version manager for Node.js package managers (npm, Yarn, and pnpm). It is mostly compatible with Corepack with regards to configuration (supporting both packageManager and devEngines.packageManager), and provides a CLI that has a better user experience and design.

Installation

You can install Moldau from the included Nix flake, crates.io, or GitHub Releases.

cargo binstall moldau

Shims

Moldau requires shims to be installed so that it can handle calls to npm, Yarn, and pnpm. Run moldau shims to install shims to the default path, or moldau shims <dest> to install them to a specific directory. Then, add the directory containing the shims to the front of your PATH so that it takes precedence over other possible installations.

Usage

moldau use pnpm@latest
moldau up
moldau prefetch yarn
moldau clean

Corepack compatibility

Moldau aims to be as compatible with Corepack as possible. That being said, it intentionally does not support certain features such as auto pin. Moldau reads the COREPACK_ENABLE_STRICT, COREPACK_NPM_REGISTRY, COREPACK_NPM_TOKEN, COREPACK_NPM_USERNAME, and COREPACK_NPM_PASSWORD environment variables and interprets them in the same way that Corepack does.

Moldau currently does not support Yarn 2.x versions other than 2.4.1. This is due to an internal implementation detail. It does support other versions of Yarn, including Yarn 4 and Yarn 1 (classic).

Commit count: 0

cargo fmt