nodejs-env-checker
v1.0.15
Published
A simple tool to check nodejs development environment
Downloads
26
Maintainers
Readme
nodejs-env-checker
nodejs-env-checker
is a simple CLI tool designed to help developers ensure their development environment meets the specified version requirements for Node.js and npm. It checks the current versions of Node.js and npm against the required versions and provides feedback.
Features
- Checks the current Node.js version against a required version.
- Checks the current npm version against a required version.
- Easy to configure required versions.
- Provides clear feedback on whether the current environment meets the requirements.
Installation
We have published our tool to npmjs. You can install nodejs-env-checker
globally on your system via npm:
npm install -g nodejs-env-checker
This allows you to run nodejs-env-checker
from anywhere in your terminal.
Usage locally
After installing, you can run nodejs-env-checker
by simply typing:
node useEnvChecker
By default, nodejs-env-checker
checks for pre-defined version requirements. You can customize these requirements by passing parameters:
useEnvChecker --node v14.0.0 --npm 6.0.0
Replace v14.0.0
and 6.0.0
with the required Node.js and npm versions for your project.
Usage in code
// checkEnv.js
const envChecker = require('nodejs-env-checker');
// call the env-checker funcion
envChecker.checkVersions();
envChecker.checkNodeEnv();
Todo
Check more env
Contributing
Contributions are welcome! If you have a suggestion or improvement, please feel free to fork the repository and submit a pull request.
License
nodejs-env-checker
is MIT licensed.