Socket
Socket
Sign inDemoInstall

mongodb-download

Package Overview
Dependencies
120
Maintainers
3
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mongodb-download

download mongodb prebuilt packages from mongodb


Version published
Weekly downloads
4.8K
decreased by-10.02%
Maintainers
3
Install size
7.70 MB
Created
Weekly downloads
 

Readme

Source

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


Keywords

FAQs

Last updated on 03 Dec 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc