Socket
Socket
Sign inDemoInstall

get-node

Package Overview
Dependencies
133
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.3.1 to 8.0.0

2

build/src/options.js

@@ -55,3 +55,3 @@ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getOpts=void 0;var _process=require("process");

const ALIASES=new Set([".","_"]);
const ALIASES=new Set(["latest","current"]);
//# sourceMappingURL=options.js.map

@@ -0,1 +1,9 @@

# 8.0.0
## Breaking changes
- Rename `*` alias to [`latest` or `l`](/README.md#supported-aliases)
- Rename `.` alias to [`current` or `c`](/README.md#supported-aliases)
- Remove `_` alias
# 7.3.1

@@ -2,0 +10,0 @@

{
"name": "get-node",
"version": "7.3.1",
"version": "8.0.0",
"main": "build/src/main.js",

@@ -61,3 +61,3 @@ "files": [

"move-file": "^1.2.0",
"normalize-node-version": "^8.0.1",
"normalize-node-version": "^9.0.0",
"path-exists": "^4.0.0",

@@ -64,0 +64,0 @@ "path-key": "^3.1.1",

@@ -58,8 +58,8 @@ [![Codecov](https://img.shields.io/codecov/c/github/ehmicky/get-node.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/get-node)

// Download latest Node.js version
await getNode('latest')
// Download current project's Node.js version using its `.nvmrc` or `package.json`
await getNode('.')
await getNode('current')
// Download current process's Node.js version
await getNode('_')
// Specify the output directory

@@ -101,7 +101,6 @@ const { path } = await getNode('8', {

- `*`: Latest available Node version
- `.` : Node version from a `.nvmrc`, `.node-version` or `.naverc` file in the
current directory or any parent directory. Defaults to the current process's
Node version
- `_` : Current process's Node version
- `latest` or `l`: Latest available Node version
- `current` or `c`: Node version from a `.nvmrc`, `.node-version` or `.naverc`
file in the current directory or any parent directory. Defaults to the current
process's Node version

@@ -108,0 +107,0 @@ ### Options

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc