1.0.1-c ā€¢ Published 8 months ago

node-engines v1.0.1-c

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Welcome to node-engines šŸ‘‹

Version Documentation Maintenance License: MIT

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-engines

Usage

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-engines

Running the node-engines command will perform the following actions:

  1. Detect the current Node.js version installed on your system.
  2. Detect the current npm (Node Package Manager) version.
  3. Update the engines field in your project's package.json to 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 test

Author

šŸ‘¤ Jason Mullings admin@jlmconsulting.services

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.

1.0.1-c

8 months ago

1.0.1-b

8 months ago

1.0.1-a

8 months ago

1.0.1

8 months ago