0.1.4 • Published 11 years ago

replicate-http v0.1.4

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

replicate-http

Copy remote files with webdav protocol by urls.

npm install replicate-http

Usage

Note that destination must support webdav PUT method.

var replicate = require("replicate-http"),
    from      = "http://pewpewpew.com/passwords.txt",
    to        = "http://backup.pewpewpew.com/passwords.txt";

replicate(from, to, function(error) {
    if (error) {
        throw error;
    }

    console.log("File successfully copied!");
});

Authors