save-url

0.0.1 • Public • Published

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)"
}

/save-url/

    Package Sidebar

    Install

    npm i save-url

    Weekly Downloads

    1

    Version

    0.0.1

    License

    GPL-2.0

    Last publish

    Collaborators

    • ryanwild