glob-cp
copy files and directories with glob patterns and variables.
install
npm install glob-cp
use
var cp = ; // asyncvar src = __dirname + '/fixtures/:module/public';var dest = __dirname + '/public/:module';var options = recursive: true force: true;;
//or sync versioncp;
you can use the whole glob syntax in the
src
anddest
pattern, as well as theglob-var
variables starting with a colon:
functions
cp(srcPattern, destPattern [,options] ,callback)
async glob cp version.
cp.sync(srcPattern, destPattern [,options])
sync glob cp version.
options
// options with the following default values:var options = // recusively copy files recursive: false // remove destination before operation force: false ;
test
npm test
license
MIT