How to use the stream function from fast-glob
Find comprehensive JavaScript fast-glob.stream code examples handpicked from public code repositorys.
164 165 166 167 168 169 170 171 172 173 174 175
const filter = getFilterSync(options); const filterStream = new FilterStream(p => !filter(p)); const uniqueStream = new UniqueStream(); return merge2(tasks.map(task => fastGlob.stream(task.pattern, task.options))) .pipe(filterStream) .pipe(uniqueStream); };
0
3
0
62 63 64 65 66 67 68 69 70 71 72
const path = require('path') const exists = fs.existsSync const write = fs.promises.writeFile const program = path.basename(process.argv[1]) const glob = async = pattern => fg.stream(pattern, { absolute: true, stats: false, followSymbolicLinks: true, })
3
0
0
fast-glob.default is the most popular function in fast-glob (115 examples)