0.1.0 • Published 11 years ago
copy-files v0.1.0
copy-files
Streaming file copier
Install
npm install copy-files --save
Usage
var copy = require('copy-files');
copy({
files: {
'newname.txt': __dirname + '/path/to/source.txt'
},
dest: '/path/to/destination',
}, function (err) {
// All copied!
});
copy(options, callback)
Async copy method using streams to copy files
options
files
- list of files to copy. The key is the copied file's name and the value is the file to copydest
- the destination directory to copy the files tooverwrite
- OPTIONAL - flag telling the copy method whether or not to overwrite existing files indest
directory. Defaults to false.
Run Tests
npm install
npm test
0.1.0
11 years ago