Package Exports
- glob-expand
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (glob-expand) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
glob-expand
A (sync) glob / minimatch call using gruntjs's file.expand
.
It has only a minimum of dependencies (glob & lodash).
Its actually a copy/paste of just 2 functions from Gruntjs's v0.4.1 grunt/file.js
Install:
npm install glob-expand
Examples:
expand = require 'glob-expand'
# may the original node-glob be with you (should you need it):
glob = expand.glob
expand {filter: 'isFile', cwd: '../'}, ['**/*.*', '!exclude/these/**/*.*']
# returns all files in cwd ['file1', 'file2',...] but excluding
# those under directory 'exclude/these'
# These are the same
expand {cwd: '../..'}, ['**/*.*', '!node_modules/**/*.*']
expand {cwd: '../..'}, '**/*.*', '!node_modules/**/*.*'
# These are the same too:
expand {}, ['**/*.*', '!**/*.js']
expand {}, '**/*.*', '!**/*.js'
expand ['**/*.*', '!**/*.js']
expand '**/*.*', '!**/*.js'
See gruntjs files configuration and node-glob for more options.
Sorry no tests, I assumed gruntjs's tests are sufficient ;-)