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);
};

fork icon0
star icon3
watch icon0

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,
})
fork icon3
star icon0
watch icon0