import { glob } from 'node:fs/promises';
for await (const entry of glob('*.js'))
console.log(entry);
function
fs.promises.glob
pattern: string | readonly string[]
): AsyncIterator<string>;
@returns
An AsyncIterator that yields the paths of files that match the pattern.
pattern: string | readonly string[],
import { glob } from 'node:fs/promises';
for await (const entry of glob('*.js'))
console.log(entry);
@returns
An AsyncIterator that yields the paths of files that match the pattern.
pattern: string | readonly string[],
): AsyncIterator<string>;
import { glob } from 'node:fs/promises';
for await (const entry of glob('*.js'))
console.log(entry);
@returns
An AsyncIterator that yields the paths of files that match the pattern.
pattern: string | readonly string[],
import { glob } from 'node:fs/promises';
for await (const entry of glob('*.js'))
console.log(entry);
@returns
An AsyncIterator that yields the paths of files that match the pattern.