UNPKG

runtime-eol

Version:
56 lines (41 loc) 1.21 kB
# runtime-eol Small package to check current tools End of life / End of support e.g. Node Version etc. ## Usage ### Console ```bash # -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 ```javascript 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