0.0.1 • Published 9 years ago

save-url v0.0.1

Weekly downloads
4
License
GPL-2.0
Repository
github
Last release
9 years ago

Save Url

Save Url

Saves a url path to the corresponding directory structure

Usage

var saveUrl = require("save-url");

//saveUrl.save(url, options, callback);
saveUrl.save(
    "http://www.twitter.com/spitcode", 
    {}, 
    function(err, httpResponse, body) {
    }
);

Options

{
    baseDiskPath: __dirname,
    sanatizeFileName: true,
    fileName: "index.html",
    includeHtml: true,
    includeDomain: true,
    userAgent: "save-url (https://github.com/ryanwild/save-url.git)"
}