nre

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 1 Imported by: 0

README

Node Runtime Environment

An extension for:

This utility ensures that any CMD command is executed within an environment configured for the selected NodeJS version.

Requirements (Windows)

Before installation, ensure the following software is installed:

Installation (Windows)

If you have GoLang version 1.20.4 or higher, run the command:

go install github.com/Adrosar/nre@latest

... or download the compiled version:

  1. Download and extract the archive nre-0.4.0-win64.zip.
  2. Move the nre.exe binary to the %NVM_HOME% directory.
  3. Open a terminal (console) and run the nre command to confirm that the application is functioning correctly.

Requirements (Linux)

Before installation, ensure the following software is installed:

Installation (Linux)

If you have GoLang version 1.20.4 or higher, run the command:

go install github.com/Adrosar/nre@latest

... or download the compiled version:

  1. Download and extract the archive nre-0.4.0-linux64.zip.
  2. Move the nre binary to the $NVM_DIR directory.
  3. Set execute permissions: chmod +x nre
  4. Open a terminal (console) and run the nre command to confirm that the application is functioning correctly.

Usage

nre <NODE_VERSION> <COMMAND>
  • NODE_VERSION - The NodeJS version number managed by NVM.
  • COMMAND - Any command valid for your operating system or terminal.
Examples
  • nre 8 npm run start: Executes npm run start using NodeJS version 8.
  • nre 10 node -v: Executes node -v using NodeJS version 10.
  • nre 12 git commit -m "Update": Executes git commit -m "Update" using NodeJS version 12.

Development (Windows)

To build and run NRE from source, ensure the following prerequisites are installed:

Running from Source
go run main.go
Building the Binary

To generate the nre.exe executable for Windows:

 go build -o nre.exe main.go

Development (Linux)

To build and run NRE from source, ensure the following prerequisites are installed:

Running from Source
go run main.go
Building the Binary

To generate the nre executable for Linux:

 go build -o nre main.go

Contributing

This project was initially created for personal use, but it’s open to the community.
Contributions are welcome — feel free to:

  • Open an issue to report bugs or suggest new features
  • Submit pull requests with improvements
  • Share ideas for future development

Your feedback and participation are highly appreciated!

Author

Adrian Gargula

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cli
helpers
https://gist.github.com/sevkin/9798d67b2cb9d07cb05f89f14ba682f8
https://gist.github.com/sevkin/9798d67b2cb9d07cb05f89f14ba682f8

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL