Function iterate

  • Return an async iterator for walking glob pattern matches.

    Parameters

    Returns AsyncGenerator<string, void, void>

  • Parameters

    Returns AsyncGenerator<Path, void, void>

  • Parameters

    Returns AsyncGenerator<string, void, void>

  • Parameters

    Returns AsyncGenerator<Path, void, void> | AsyncGenerator<string, void, void>

Properties

Properties

sync: {
    (pattern: string | string[], options?: GlobOptionsWithFileTypesUnset): Generator<string, void, void>;
    (pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Generator<Path, void, void>;
    (pattern: string | string[], options: GlobOptionsWithFileTypesFalse): Generator<string, void, void>;
    (pattern: string | string[], options: GlobOptions): Generator<Path, void, void> | Generator<string, void, void>;
} = globIterateSync

Type declaration

    • (pattern, options?): Generator<string, void, void>
    • Return a sync iterator for walking glob pattern matches.

      Parameters

      Returns Generator<string, void, void>

    • (pattern, options): Generator<Path, void, void>
    • Parameters

      Returns Generator<Path, void, void>

    • (pattern, options): Generator<string, void, void>
    • Parameters

      Returns Generator<string, void, void>

    • (pattern, options): Generator<Path, void, void> | Generator<string, void, void>
    • Parameters

      Returns Generator<Path, void, void> | Generator<string, void, void>