# mongodb-download

> download mongodb prebuilt packages from mongodb

Latest version **2.2.7** (published 2018-12-03) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install mongodb-download
pnpm add mongodb-download
yarn add mongodb-download
bun add mongodb-download
```

Provides the command `mongodb-download`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.2.7 |
| Published | 2018-12-03 |
| First published | 2015-10-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 97.8 KB |
| Known vulnerabilities | 0 (+5 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Roman Jurkov |
| Maintainers | compwright, lonerifle, winfinit |
| Keywords | mongodb, download |

## Links

- npm: https://www.npmjs.com/package/mongodb-download
- Repository: https://github.com/winfinit/mongodb-download
- Homepage: https://github.com/winfinit/mongodb-download#readme
- Issues: https://github.com/winfinit/mongodb-download/issues
- npm.io page: https://npm.io/package/mongodb-download

## Dependencies (9)

- [debug](https://npm.io/package/debug.md) ^2.2.0
- [getos](https://npm.io/package/getos.md) ^2.7.0
- [yargs](https://npm.io/package/yargs.md) ^3.26.0
- [semver](https://npm.io/package/semver.md) ^5.6.0
- [request](https://npm.io/package/request.md) ^2.79.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^2.0.0
- [md5-file](https://npm.io/package/md5-file.md) 3.1.1
- [decompress](https://npm.io/package/decompress.md) ^4.0.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.1.1

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 2.2.7 (latest) — 2018-12-03
- 2.2.6 — 2018-01-29
- 2.2.5 — 2018-01-25
- 2.2.4 — 2017-11-10
- 2.2.3 — 2017-06-06
- 2.2.2 — 2017-06-06
- 2.2.1 — 2017-04-20
- 2.2.0 — 2017-04-19
- 2.1.6 — 2017-03-12
- 2.1.5 — 2017-02-25
- 2.1.3 — 2017-02-24
- 2.1.2 — 2017-02-24
- 2.1.1 — 2017-02-24
- 2.1.0 — 2017-02-24
- 2.0.0 — 2017-02-22
- … 27 more at https://npm.io/package/mongodb-download/versions

## README

# mongodb-download

[![NPM](https://nodei.co/npm/mongodb-download.png)](https://nodei.co/npm/mongodb-download/)

downloads a MongoDB release zip/tgz from MongoDB

## Usage

```plain
$ npm install --global mongodb-download
$ mongodb-download --version=3.0.6
```

## Synopsis

```javascript
let {MongoDBDownload} = require('mongodb-download');

let mongoDBDownload: any = new MongoDBDownload({});

mongoDBDownload.download().then((downloadLocation: string) => {
  console.log(`Downloaded MongoDB: ${downloadLocation}`);
}, (err: any) => {
  throw err;
});
```

if you don't specify `arch` or `platform` args it will use `require('os')` to get them from the current OS.

## Options

### version (optional)
MongoDB version to download, "latest" is by default

### arch (optional)
32 or 64 bit version architecture, possible values: ia32 or x64

### platform (optional)
Target platform of a download, possible values: "win32", "darwin", "osx", "linux" or "elementary OS"  

### downloadDir (optional) 
Download path

### http (optional)
Additional options that are going to be passed to http library, such as "agent".

```javascript
let {MongoDBDownload} = require('mongodb-download');
let httpsProxyAgent = require('https-proxy-agent');

var proxyUrl = "https://localhost:3128";
var proxyAgent = new httpsProxyAgent(proxy_url);

let mongoDBDownload: any = new MongoDBDownload({
  version: '3.0.6',
  http: {
    agent: proxyAgent
  }
});


```

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