NTM (Node Tool in Moonbit) is a fast Node.js version management tool built on Moonbit, similar to gmn
and fnm
.
inspired by akazwz/gnm
(This project is experimental. Do not use it in production.)
- User-friendly: Built-in common commands (such as list_remote, install, use) make it easy to get started.
NTM is a command-line tool that can be used as follows:
ntm list_remote
To list only LTS versions:
ntm list_remote --lts
ntm install <version>
To install the latest LTS:
ntm install lts
ntm use <version>
To switch to the latest LTS:
ntm use lts
- Clone the repository:
git clone https://github.com/colmugx/ntm.git
- Enter the project directory:
cd ntm
- 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.