Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fetch-node-release

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-node-release

Fetch latest Node.js release version by keyword such as "stable", "lts/carbon" or "lts/*"

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

fetch-node-release

build

Fetch latest Node.js release version by keyword such as stable, lts/carbon or lts/*.

JavaScript Style Guide

Usage

const fetch = require('fetch-node-release');

(async () => {
  let version;
  // fetch latest stable version
  version = await fetch('stable');
  console.log('latest stable', version);

  // fetch latest lts/boron version
  version = await fetch('lts/boron');
  console.log('latest lts/boron', version);

  // fetch latest lts version
  version = await fetch('lts/*');
  console.log('latest lts', version);
})().catch((err) => {
  console.error(err);
  process.exitCode = 1;
});

Caveats

  • fetches data from https://nodejs.org/dist/ so it will reject if there's no internet access or upon HTTP failures
  • will reject if you provide invalid lts branch name
  • will explode the moment node lts releases run out of alphabet ;)

Keywords

FAQs

Package last updated on 24 Oct 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc