# node-fetcher

> downloads the node binary from joyent

Latest version **0.0.10** (published 2013-08-22) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2013-08-22 |
| First published | 2013-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Patrick Debois |
| Maintainers | jedi4ever |
| Keywords | download, node-binary, executable |

## Links

- npm: https://www.npmjs.com/package/node-fetcher
- Repository: https://github.com/jedi4ever/node-fetcher.js
- Issues: https://github.com/jedi4ever/node-fetcher.js/issues
- npm.io page: https://npm.io/package/node-fetcher

## Dependencies (3)

- [async](https://npm.io/package/async.md) ~0.2.9
- [request](https://npm.io/package/request.md) ~2.26.0
- [tar-async](https://npm.io/package/tar-async.md) ~1.2.0

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.0.10 (latest) — 2013-08-22
- 0.0.9 — 2013-08-22
- 0.0.8 — 2013-08-22
- 0.0.7 — 2013-08-22
- 0.0.6 — 2013-08-20
- 0.0.5 — 2013-08-20
- 0.0.4 — 2013-08-15

## README

# Description

A simple helper to download the nodejs binary from the `http://nodejs.org/dist`

It will download the tgz and extract the nodejs binary from it

[![Build Status](https://travis-ci.org/jedi4ever/node-fetcher.js.png)](https://travis-ci.org/jedi4ever/node-fetcher.js)

# Usage

    var nodeFetcher = require('node-fetcher');
    nodeFetcher.download('10.0.3', 'linux', 'x64', '/tmp/node', function(err) {
      // do something with the error
    });

    nodeFetcher.download('latest', 'linux', 'x64', '/tmp/node', function(err) {
      // do something with the error
    });

    nodeFetcher.download('system', 'linux', 'x64', '/tmp/node', function(err) {
      // do something with the error
    });

# Limits
It currently only supports tgz based downloads. Feel free to add the pkg or exe fetchers

# API
## download
    nodeFetcher.download(version, platform, arch, filename, callback);

downloads the specified version, platform and architecture to filename

- `version` : latest | system | _version_ (X.Y.Z - without or without the v prefix)
- `architecture` : x86 or x64
- `platform` : linux, darwin or sunos
- `filename` : path to save the nodejs binary to
- `callback` : function that will pass the err or not

## downloadURL
    nodeFetcher.downloadURL(version, platform, arch);

returns the downloadURL for the specified version, platform and architecture to filename

- `version` : (without the v prefix)
- `architecture` : x86 or x64
- `platform` : linux, darwin or sunos

# License
MIT

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