# node-msi

> Fetches and starts the latest Node installer for Windows.

Latest version **1.1.1** (published 2016-06-14) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install node-msi
pnpm add node-msi
yarn add node-msi
bun add node-msi
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2016-06-14 |
| First published | 2016-05-18 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mark Tiedemann |
| Maintainers | marktiedemann |
| Keywords | node, install, installer, windows, update, msi |

## Links

- npm: https://www.npmjs.com/package/node-msi
- Repository: https://github.com/MarkTiedemann/node-msi
- Issues: https://github.com/MarkTiedemann/node-msi/issues
- npm.io page: https://npm.io/package/node-msi

## Dependencies (1)

- [node-latest](https://npm.io/package/node-latest.md) ^3.1.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2016-06-14
- 1.1.0 — 2016-06-08
- 1.0.0 — 2016-05-18

## README

# node-msi

**Fetches and starts the latest Node installer for Windows.**

## Installation

```
npm install node-msi
```

## Quickstart

```javascript
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](http://www.wtfpl.net/) – Do What the F*ck You Want to Public License.

Made with :heart: by [@MarkTiedemann](https://twitter.com/MarkTiedemannDE).

---
_Source: https://npm.io/package/node-msi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
