Package Exports
- runtime-eol
- runtime-eol/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (runtime-eol) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
runtime-eol
Small package to check current tools End of life / End of support
e.g. Node Version etc.
Usage
Console
# -s | --skip => Skip downloading from remote
# -a | --add [...] => Specify additional tools (e.g., -a python)
# -r | --recommend => Recommended version instead of minimum
# -h | --help => Show this help message
## Console Examples:
npx runtime-eol -a python sls
npx runtime-eol -s
## Sample output:
# Node - system = 20.10.0 | target = 18 => OK
# Python - system = 3.9.6 | target = 3.9 => OK
# Lambda - system = nodejs18.x => OK
# versions ok => 3 out of 3
Import
const eol = require('runtime-eol');
/*
* optional argument:
* {
* skipRemote: false,
* tools: ['python'],
* recommend: false,
* }
*/
const result = await eol();
console.log(result) // -> true if All tools ok, false if at least one is behind
Tested additions
- Python (python)
- AWS Lambda (sls, lambda, aws-lambda)
Acknowledgment
This package runs and fully depends on Endoflife API.
Thanks to the team behind - https://endoflife.date/
License
MIT