https://github.com/grll/fnmx
A lightweight cross-platform wrapper for fnm that provides uvx-like functionality.
https://github.com/grll/fnmx
Last synced: 3 months ago
JSON representation
A lightweight cross-platform wrapper for fnm that provides uvx-like functionality.
- Host: GitHub
- URL: https://github.com/grll/fnmx
- Owner: grll
- License: mit
- Created: 2025-01-02T10:31:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-07T08:50:58.000Z (over 1 year ago)
- Last Synced: 2025-02-03T18:50:37.510Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fnmx
A lightweight cross-platform wrapper for fnm that provides uvx-like functionality.
It wraps fnm exec and fnm install to make sure the right node version is used and installed before executing in fnm context.
It needs fnm installed. Preferably it uses an fnm binary in the same folder but falls back to fnm in PATH if necessary.
## Installation
Download the appropriate binary for your system from the [releases page](https://github.com/grll/fnmx/releases):
- macOS ARM64 (Apple Silicon): `fnmx-darwin-arm64`
- macOS Intel: `fnmx-darwin-amd64`
- Windows: `fnmx-windows-amd64.exe`
Make the binary executable (macOS):
```bash
chmod +x fnmx-darwin-*
```
## Usage
```bash
fnmx
```
For example:
```bash
fnmx v22 npm run dev
```
This will make sure node v22 is installed and then run npm run dev with the right node verison.