Package Exports
- mongodb-download
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mongodb-download) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
mongodb-download
downloads a MongoDB release zip/tgz from MongoDB
usage
$ npm install --global mongodb-download
$ mongodb-download --version=3.0.6
var download = require('mongodb-download')
download({
version: '3.0.6',
arch: 'ia32',
platform: 'win32',
download_dir: './temp_download' // defaults to os.tmpdir()
}, function (err, location) {
// location will be the path of the archive that it downloaded.
})
if you don't specify arch
or platform
args it will use require('os')
to get them from the current OS. specifying version
is mandatory.