flat-glob

Return glob applied and flattened version of the given array

npm install flat-glob
4 downloads in the last week
4 downloads in the last month

flat-glob

Return glob applied, flattened and duplicate filtered version of the given list of filenames

Install

$ npm install flat-glob

Usage

flatGlob = require('flat-glob')

flatGlob(['foo.js', 'styles/**/*.css', 'templates/index.html', 'templates/**/*.html'])
// => ['foo.js', 'styles/a.css', 'styles/b.css', 'templates/index.html', 'templates/foo.html', 'templates/bar.html']
npm loves you