Skip to content
/ nre Public

Run CMD commands in an environment with your chosen NodeJS version using NRE!

License

Notifications You must be signed in to change notification settings

Adrosar/nre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Run CMD commands in an environment with your chosen NodeJS version using NRE!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages