Skip to content
/ pnt Public

🔧 Fast and tiny Node.js tools, for Node.js version manager and Node.js registry manager, built in Moonbit

License

Notifications You must be signed in to change notification settings

colmugx/pnt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PNT(Pico NodeJS Toolkit)

Release Build

简体中文 | 日本語

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.)

Main Features

  • 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

Usage

PNT is a command-line tool that can be used as follows:

List Remote Modules

pnt list_remote

To list only LTS versions:

pnt list_remote --lts

Install a Specific Version

pnt install <version>

To install the latest LTS:

pnt install lts

Switch to a Specific Version

pnt use <version>

To switch to the latest LTS:

pnt use lts

Build Guide

  1. Clone the repository:
    git clone https://github.com/colmugx/pnt.git
  2. Enter the project directory:
    cd pnt
  3. Install dependencies and build the project (ensure all required dependencies are installed):
    moon build --target native

Notes

  1. Requires Zig 0.11.0 or later.
  2. Ensure that the MoonBit runtime environment is properly set up.
  3. The current code only supports macOS/aarch64 platform.

Inspired

License

This project is licensed under the MIT License. For details, see LICENSE.

About

🔧 Fast and tiny Node.js tools, for Node.js version manager and Node.js registry manager, built in Moonbit

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published