PNT(Pico NodeJS Toolkit) is a Node.js management tool built on Moonbit including a fast version manager similar to gmn
and fnm
, and a registry manager similar to nrm
.
(This project is experimental. Do not use it in production.)
- High Performance: Fast execution speed for common operations, low memory usage, suitable for resource-constrained environments.
- Versatile Features:
- Remote version listing with LTS filter support
- Quick installation, switching, and uninstallation of Node.js versions
- Registry management for easy switching of Node.js mirrors
- Lightweight: Minimal resource consumption for local operations, suitable for various scenarios
PNT is a command-line tool that can be used as follows:
pnt list_remote
To list only LTS versions:
pnt list_remote --lts
pnt install <version>
To install the latest LTS:
pnt install lts
pnt use <version>
To switch to the latest LTS:
pnt use lts
- Clone the repository:
git clone https://github.com/colmugx/pnt.git
- Enter the project directory:
cd pnt
- Install dependencies and build the project (ensure all required dependencies are installed):
moon build --target native
- Requires Zig 0.11.0 or later.
- Ensure that the MoonBit runtime environment is properly set up.
- The current code only supports macOS/aarch64 platform.
This project is licensed under the MIT License. For details, see LICENSE.