Function stream

Properties

Properties

sync: {
    (pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Minipass<Path, Path>;
    (pattern: string | string[], options: GlobOptionsWithFileTypesFalse): Minipass<string, string>;
    (pattern: string | string[], options: GlobOptionsWithFileTypesUnset): Minipass<string, string>;
    (pattern: string | string[], options: GlobOptions): Minipass<Path, Path> | Minipass<string, string>;
} = globStreamSync

Type declaration

    • (pattern, options): Minipass<Path, Path>
    • Syncronous form of globStream. Will read all the matches as fast as you consume them, even all in a single tick if you consume them immediately, but will still respond to backpressure if they're not consumed immediately.

      Parameters

      Returns Minipass<Path, Path>

    • (pattern, options): Minipass<string, string>
    • Parameters

      Returns Minipass<string, string>

    • (pattern, options): Minipass<string, string>
    • Parameters

      Returns Minipass<string, string>

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

      Returns Minipass<Path, Path> | Minipass<string, string>