mongodb-download

download mongodb prebuilt packages from mongodb

ISC 42 个版本
安装
npm install mongodb-download
yarn add mongodb-download
pnpm add mongodb-download
bun add mongodb-download
README

mongodb-download

NPM

downloads a MongoDB release zip/tgz from MongoDB

Usage

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

Synopsis

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".

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
  }
});


版本列表
2.2.7 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
1.3.2 2016-03-31
1.3.1 2016-03-07
1.3.0 2016-03-04
1.2.1 2016-01-27
1.2.1-rc4 2016-01-27
1.2.1-rc3 2016-01-27
1.2.1-rc2 2016-01-27
1.2.1-rc1 2016-01-27
1.2.0 2016-01-12
1.1.8 2015-12-07
1.1.7 2015-12-05
1.1.6 2015-11-30
1.1.5 2015-11-28
1.1.4 2015-11-24
1.1.3 2015-11-11
1.1.2 2015-11-09
1.1.1 2015-10-11
1.1.0 2015-10-10
1.0.8 2015-10-07
1.0.7 2015-10-07
1.0.6 2015-10-07
1.0.5 2015-10-07
1.0.4 2015-10-06
1.0.3 2015-10-05
1.0.2 2015-10-05
1.0.1 2015-10-05
1.0.0 2015-10-05