Schniz/fnm — 27.4k★ trên GitHub (Rust). 🚀 Fast and simple Node.js version manager, built in Rust
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
🚀 Fast and simple Node.js version manager, built in Rust
Features
🌎 Cross-platform support (macOS, Windows, Linux)
✨ Single file, easy installation, instant startup
🚀 Built with speed in mind
📂 Works with .node-version and .nvmrc files
Installation
Using a script (macOS/Linux)
For bash, zsh and fish shells, there's an automatic installation script.
First ensure that curl and unzip are already installed on your operating system. Then execute:
curl -fsSL https://fnm.vercel.app/install | bash
Upgrade
On macOS, it is as simple as brew upgrade fnm.
On other operating systems, upgrading fnm is almost the same as installing it. To prevent duplication in your shell config file, pass --skip-shell to the install command:
Set a custom directory for fnm to be installed. The default is $XDG_DATA_HOME/fnm (if $XDG_DATA_HOME is not defined it falls back to $HOME/.local/share/fnm on linux and $HOME/Library/Application Support/fnm on MacOS).
Note: On macOS, this option is only meaningful when using --force-install since Homebrew is the default installation method.
--skip-shell
Skip appending shell specific loader to shell config file, based on the current user shell, defined in $SHELL. e.g. for Bash, $HOME/.bashrc. $HOME/.zshrc for Zsh. For Fish - $HOME/.config/fish/conf.d/fnm.fish
--force-install
macOS installations using the installation script are deprecated in favor of the Homebrew formula, but this forces the script to install using it anyway.
Download the latest release binary for your system
Make it available globally on PATH environment variable
Set up your shell for fnm
Removing
To remove fnm (😢), just delete the .fnm folder in your home directory. You should also edit your shell configuration to remove any references to fnm (ie. read Shell Setup, and do the opposite).
Completions
fnm ships its completions with the binary:
fnm completions --shell <SHELL>
Where <SHELL> can be one of the supported shells:
bash
zsh
fish
powershell
Please follow your shell instructions to install them.
Shell Setup
Environment variables need to be setup before you can start using fnm.
This is done by evaluating the output of fnm env.
[!TIP]
Prefer passing an explicit shell (for example fnm env --shell bash) instead of relying on shell inference at runtime. It is a bit faster and avoids process tree detection.
[!NOTE]
Check out the Configuration section to enable highly
recommended features, like automatic version switching.
Adding a .node-version to your project is as simple as:
To create the profile file you can run this in PowerShell:
if (-not (Test-Path $profile)) { New-Item $profile -Force }
To edit your profile run this in PowerShell:
Invoke-Item $profile
Windows Command Prompt aka Batch aka WinCMD
fnm is also supported but is not entirely covered. You can set up a startup script for cmd.exe or Windows Terminal and append the following lines:
@echo off
:: for /F will launch a new instance of cmd so we create a guard to prevent an infnite loop
if not defined FNM_AUTORUN_GUARD (
set "FNM_AUTORUN_GUARD=AutorunGuard"
FOR /f "tokens=*" %%z IN ('fnm env --use-on-cd') DO CALL %%z
)
Usage with Cmder
Usage is very similar to the normal WinCMD install, apart for a few tweaks to allow being called from the cmder startup script. The example assumes that the CMDER_ROOT environment variable is set to the root directory of your Cmder installation.
Then you can do something like this:
Make a .cmd file to invoke it
:: %CMDER_ROOT%\bin\fnm_init.cmd
@echo off
FOR /f "tokens=*" %%z IN ('fnm env --use-on-cd') DO CALL %%z
Schniz/fnm thuộc nhóm Frontend trên TopGit, cùng 6 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về Schniz/fnm ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Schniz/fnm là nguồn chính thức.
Schniz/fnm có bao nhiêu sao?
Schniz/fnm có 27.4k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/Schniz/fnm. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Schniz/fnm có phải mã nguồn mở không?
Có — Schniz/fnm phát hành theo license GPL-3.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/Schniz/fnm.
Schniz/fnm còn đang phát triển không?
Commit gần nhất trên Schniz/fnm là 3 tháng trước (theo timestamp GitHub). Repo có 665 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Schniz/fnm dùng license gì?
Schniz/fnm phát hành theo license GPL-3.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Schniz/fnm là gì?
Schniz/fnm (Schniz/fnm) là dự án Rust trên GitHub. Theo mô tả gốc: 🚀 Fast and simple Node.js version manager, built in Rust
Schniz/fnm viết bằng ngôn ngữ gì?
Schniz/fnm chủ yếu viết bằng Rust. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc fnm có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về fnm.