0.1.0 • Published 11 years ago

stream-copy-file v0.1.0

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

stream-copy-file

Node module to copy files like copy /b on windows.

Installation

npm install stream-copy-file

Usage

Copy a file then call a callback.

var streamCopyFile = require('stream-copy-file');
var source = 'aFile';
var target = 'bFile';
function callback (err) {
    if (err) {
        throw err;
    }
    console.log('files exist, what now?');
}
streamCopyFile(source, target, callback);