Logos DX
    Preparing search index...
    • import { glob } from 'node:fs/promises';

      for await (const entry of glob('*.js'))
      console.log(entry);

      Parameters

      • pattern: string | readonly string[]

      Returns AsyncIterator<string>

      An AsyncIterator that yields the paths of files that match the pattern.

      v22.0.0

    • import { glob } from 'node:fs/promises';

      for await (const entry of glob('*.js'))
      console.log(entry);

      Parameters

      • pattern: string | readonly string[]
      • options: GlobOptionsWithFileTypes

      Returns AsyncIterator<Dirent<string>>

      An AsyncIterator that yields the paths of files that match the pattern.

      v22.0.0

    • import { glob } from 'node:fs/promises';

      for await (const entry of glob('*.js'))
      console.log(entry);

      Parameters

      • pattern: string | readonly string[]
      • options: GlobOptionsWithoutFileTypes

      Returns AsyncIterator<string>

      An AsyncIterator that yields the paths of files that match the pattern.

      v22.0.0

    • import { glob } from 'node:fs/promises';

      for await (const entry of glob('*.js'))
      console.log(entry);

      Parameters

      • pattern: string | readonly string[]
      • options: GlobOptions

      Returns AsyncIterator<string | Dirent<string>>

      An AsyncIterator that yields the paths of files that match the pattern.

      v22.0.0