1.0.5 • Published 10 years ago
glob-ln v1.0.5
glob-ln
link files and directories with glob patterns and variables.
install
npm install glob-lnuse
var ln = require('glob-ln');
// async
var src = __dirname + '/fixtures/:module/public';
var dest = __dirname + '/public/:module';
var options = {force: true};
ln(src, dest, function(err) {
if (err) console.error(err);
});//or sync version
ln.sync('fixtures/:module/public', 'public/:module');use absolute paths on
srcanddestto create links.you can use the whole glob syntax in the
srcanddestpattern, as well as theglob-varvariables starting with a colon:
functions
ln(srcPattern, destPattern ,options ,callback)
async glob ln version.
ln.sync(srcPattern, destPattern ,options)
sync glob ln version.
options
// options with the following default values:
var options = {
// remove destination before operation
force: false
};test
npm testlicense
MIT