https://github.com/ryanccn/moldau
Modern version manager for Node.js package managers
https://github.com/ryanccn/moldau
cli nodejs npm pnpm yarn
Last synced: 8 months ago
JSON representation
Modern version manager for Node.js package managers
- Host: GitHub
- URL: https://github.com/ryanccn/moldau
- Owner: ryanccn
- License: gpl-3.0
- Created: 2025-04-04T14:45:55.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-07T13:43:44.000Z (8 months ago)
- Last Synced: 2025-04-09T19:47:27.483Z (8 months ago)
- Topics: cli, nodejs, npm, pnpm, yarn
- Language: Rust
- Homepage:
- Size: 82 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://crates.io/crates/moldau), or [GitHub Releases](https://github.com/ryanccn/moldau/releases).
```bash
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 ` 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
```bash
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` and `COREPACK_NPM_REGISTRY` environment variables and interprets them in [the same way that Corepack does](https://github.com/nodejs/corepack#environment-variables).
Moldau currently does not support Yarn 2.x versions other than 2.4.1. This is due to an internal implementation detail.