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

node-msi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-msi

Fetches and starts the latest Node installer for Windows.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

node-msi

Fetches and starts the latest Node installer for Windows.

Installation

npm install node-msi

Quickstart

const { fetch, start } = require('node-msi')

// fetch latest Node 64-bit installer
// to Downloads and start it

fetch()
    .then(start)
    .catch(err => console.error(err))

API

msi.fetch({ version, bits, dir })

> fetches the specified Node installer from https://nodejs.org/dist/

  • version {String}: the installer version to be fetched, e.g. 6.0.0; default: the latest Node version
  • bits {Number}: 32 or 64; default: 64
  • dir {String}: the directory where the installer will be downloaded to; default: C:/Users/<User>/Downloads
  • returns {Promise}: resolves with the path of the downloaded installer; rejects if an Error occurs

msi.start(path)

> starts the Node installer from the specified path

  • path {String}: the path of the installer
  • returns {Promise}: resolves once the installer starts; rejects if an Error occurs

License

WTFPL – Do What the F*ck You Want to Public License.

Made with :heart: by @MarkTiedemann.

Keywords

node

FAQs

Package last updated on 14 Jun 2016

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