vagrant-download

A downloader for vagrant

Usage no npm install needed!

<script type="module">
  import vagrantDownload from 'https://cdn.skypack.dev/vagrant-download';
</script>

README

vagrant-download

downloads vagrant from website

var download = require('vagrant-download');

download({
    version: '1.7.4',
    platform: 'darwin'
    cache: './files' // defaults to <users home directory>/.vagrant-download
}, function (err, filePath) {
    // filePath will be the path of the file that it downloaded.
    // if the zip was already cached it will skip
    // downloading and call the cb with the cached zip path
    // if it wasn't cached it will download the zip and save
    // it in the cache path
});