Test or transform filesystem paths with glob-like rules
If minimatch works line RegEx.test, then glob-rules works like RegEx.replace. If you don't need replacing parts of matched filesystem path, or you need feature rich matcher, then use minimatch. This library is for copy/move/transfrom functionality, like inside building scripts.
*matching single path segment of any length including 0
**matching subpath of any length including 0
?matching single character of segment
- replacing could be achived with brackets like in regular expressions
var glob_rules = ;// bulding minifyingvar transformer = glob_rules;console; // ./build/app-min.jsconsole; // ./build/module/func-min.js// compiling coffee-scriptvar transformer = glob_rules;console; // ./build/app.jsconsole; // ./build/module/func.js
Copyright and license
Code and documentation copyright 2014 Eugene Chernyshov. Code released under the MIT license.