Metalsmith plugin that downloads a file locally
$ npm install metalsmith-download
{
"plugins": {
"metalsmith-download": {
"url": "http://site.com/file.md",
"file": "/path/to/save/file.md"
}
}
}
var MetalSmith = require('metalsmith');
var Download = require('metalsmith-download');
Metalsmith(__dirname).use(Download({
url: 'http://site.com/file.md',
file: '/path/to/save/file.md'
}))
.build();