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

runtime-resolver

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runtime-resolver

Resolve semver-compatible versions of Node.js, Bun, and Deno runtimes with Effect-based architecture and offline fallback.

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
1
Created
Source

runtime-resolver

npm version License: MIT Node.js TypeScript Effect

Resolve semver-compatible versions of Node.js, Bun and Deno runtimes. Fetches available versions from GitHub with automatic offline fallback via a build-time cache.

Features

  • Resolve matching versions for Node.js, Bun and Deno with a single call
  • Filter Node.js results by release phase (current, active-lts, maintenance-lts)
  • Control version granularity with increment levels (latest, minor, patch) for all runtimes
  • Track data provenance with the source field ("api" or "cache")
  • Offline fallback using bundled version data when GitHub is unreachable
  • CLI with structured JSON output for CI/CD pipelines
  • Full Effect API for custom layer composition and typed error handling

Installation

npm install runtime-resolver

Quick Start

import { resolveNode, resolveBun, resolveDeno } from "runtime-resolver";

const node = await resolveNode({ semverRange: ">=20" });
console.log(node.latest);  // e.g. "22.14.0"
console.log(node.source);  // "api" or "cache"
console.log(node.default); // latest LTS version

const bun = await resolveBun({ semverRange: ">=1.1", increments: "minor" });
const deno = await resolveDeno({ semverRange: ">=2", increments: "minor" });

Set a GITHUB_TOKEN or GITHUB_PERSONAL_ACCESS_TOKEN environment variable for authenticated requests. Without one, the resolver falls back to cached data.

CLI

npx runtime-resolver --node ">=22" --bun "^1" --deno ">=2" --pretty

Output is structured JSON with a $schema reference for editor auto-complete. Print the full schema with --schema:

npx runtime-resolver --schema

Documentation

For configuration, API reference, and advanced usage, see docs.

License

MIT

Keywords

node

FAQs

Package last updated on 25 Mar 2026

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