New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

runtime-eol

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runtime-eol

check runtime versions

Source
npmnpm
Version
1.2.3
Version published
Weekly downloads
55
-60.14%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

version

FAQs

Package last updated on 03 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts