node-engines v1.0.1-c
Welcome to node-engines š
Node engines package builder
Homepage
š Homepage
Node Engines
Node Engines is a command-line tool that helps developers automatically detect and update the Node.js and npm versions in their project's package.json file; useful when working with NVM.
Installation
You can install the Node Engines package globally using npm:
npm install -g node-enginesUsage
After installing the package, you can use the node-engines command from any directory where you have a package.json file to detect and update the Node.js and npm versions.
Here's how you can use it:
node-enginesRunning the node-engines command will perform the following actions:
- Detect the current Node.js version installed on your system.
- Detect the current npm (Node Package Manager) version.
- Update the
enginesfield in your project'spackage.jsonto specify the detected Node.js and npm versions.
If the package.json file does not exist in the current directory, the tool will display an error message.
Example
Before running node-engines, your package.json may look like this:
{
"name": "my-node-app",
"version": "1.0.0",
"engines": {
"node": ">=12.0.0",
"npm": ">=6.0.0"
},
// ...
}After running node-engines, your package.json will be updated with the detected versions:
{
"name": "my-node-app",
"version": "1.0.0",
"engines": {
"node": ">=14.17.5",
"npm": ">=7.24.0"
},
// ...
}Run tests
npm run testAuthor
š¤ Jason Mullings admin@jlmconsulting.services
- Website: https://jasonmullings.com/
- Github: @jmullings
Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a āļø if this project helped you!
License
This project is MIT licensed.