https://github.com/wttech/node-wrapper
Node/NPM/NPX wrapper scripts for automatic setup and utilization of Node.js in local or project-specific environments
https://github.com/wttech/node-wrapper
Last synced: 9 months ago
JSON representation
Node/NPM/NPX wrapper scripts for automatic setup and utilization of Node.js in local or project-specific environments
- Host: GitHub
- URL: https://github.com/wttech/node-wrapper
- Owner: wttech
- License: apache-2.0
- Created: 2024-05-28T07:33:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T07:51:00.000Z (almost 2 years ago)
- Last Synced: 2025-03-20T23:14:22.848Z (about 1 year ago)
- Language: Shell
- Size: 31.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.wundermanthompson.com/service/technology)
[](http://www.apache.org/licenses/)
# Node Wrapper(s)
This project provides Node/NPM/NPX wrapper scripts. These scripts automate the setup and utilization of Node.js in local or project-specific environments.
# Rationale
The Node.js ecosystem is vast and diverse, leading to several challenges:
1. **Multiple Project Requirements**: Different projects may require different versions of Node.js, NPM, or NPX. This diversity can lead to conflicts when working on multiple projects simultaneously.
2. **Environment Constraints**: In certain environments, such as CI/CD pipelines or Docker containers, Node.js may not be installed by default. This can pose challenges in setting up and maintaining the development environment.
3. **Version Management**: Managing multiple versions of Node.js on the same machine can be complex and error-prone.
The Node Wrapper scripts aim to address these challenges by providing a flexible and easy-to-use solution for managing Node.js versions.
## Usage
The wrapper scripts allow you to use different versions of Node.js across various projects without needing a global installation.
To use the wrapper scripts, follow these steps:
1. Copy the scripts to your project directory.
2. Replace the commands in your project scripts:
- Replace `node` with `sh nodew`
- Replace `npm` with `sh npmw`
- Replace `npx` with `sh npxw`
Here's an example:
```shell
% sh npxw --version
10.7.0
```
Please note that a directory named 'node' will be created. Make sure to add it to your VCS ignore list.
# Authors
[Krystian Panek](mailto:krystian.panek@wundermanthompson.com)
# License
**Node Wrapper** is licensed under the [Apache License, Version 2.0 (the "License")](https://www.apache.org/licenses/LICENSE-2.0.txt)