A simple way to download HTTP files in a build script
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.js
package.json

README.md

lapo-download

HTTP GET of a file using every header available to avoid re-fetching an up-to-date file. Right now headers are saved in a .headers file.

var download = require('lapo-download');
download({
    file: 'path/localFile.txt',
    url: 'http://domain/path/url/realName.txt'
}, function (err) {
    console.log('Status:' + (err || 'OK'));
});