Skip to content

akre54/glob-copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glob-Copy

Glob-aware cp for node.

Usage

cp(src, dest, cb)

src can be a string or an array of strings with a glob pattern. (see minimatch patterns and examples)

dest is a string.

cb is optional.

Example

var cp = require('glob-copy');

cp('./app/*.html', './public', function(err, files) {
  console.log("copied " + files.length + " files to ./public");
});

cp.sync('./app/*.html', './public');