0.0.1 • Published 9 years ago

metalsmith-download v0.0.1

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
9 years ago

Build Status

Metalsmith plugin that downloads a file locally

Installation

$ npm install metalsmith-download

Usage

CLI

{
  "plugins": {
    "metalsmith-download": {
      "url": "http://site.com/file.md",
      "file": "/path/to/save/file.md"
    }
  }
}

JavaScript

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