@types/glob-stream

  • Version 8.0.2
  • Published
  • 7.43 kB
  • 3 dependencies
  • MIT license

Install

npm i @types/glob-stream
yarn add @types/glob-stream
pnpm add @types/glob-stream

Overview

TypeScript definitions for glob-stream

Index

Functions

function globStream

globStream: {
(glob: string | string[]): Readable<globStream.Entry>;
(
glob: string | string[],
options: globStream.Options
): Readable<globStream.Entry>;
};

    Interfaces

    interface Entry

    interface Entry {}

      property base

      base: string;

        property cwd

        cwd: string;

          property path

          path: string;

            interface Options

            interface Options extends PicomatchOptions {}

              property allowEmpty

              allowEmpty?: boolean | undefined;
              • Whether or not to error upon an empty singular glob.

              property base

              base?: string | undefined;
              • The absolute segment of the glob path that isn't a glob. This value is attached to each glob object and is useful for relative pathing.

              property cwd

              cwd?: string | undefined;
              • The current working directory that the glob is resolved against.

              property cwdbase

              cwdbase?: boolean | undefined;
              • Whether or not the and should be the same.

              property root

              root?: string | undefined;
              • The root path that the glob is resolved against.

              property uniqueBy

              uniqueBy?: UniqueByStringPredicate | UniqueByFunctionPredicate | undefined;
              • Filters stream to remove duplicates based on the string property name or the result of function. When using a function, the function receives the streamed data (objects containing cwd, base, path properties) to compare against.

              Type Aliases

              type UniqueByFunctionPredicate

              type UniqueByFunctionPredicate = (entry: Entry) => string;

                type UniqueByStringPredicate

                type UniqueByStringPredicate = keyof Entry;

                  Package Files (1)

                  Dependencies (3)

                  Dev Dependencies (0)

                  No dev dependencies.

                  Peer Dependencies (0)

                  No peer dependencies.

                  Badge

                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/glob-stream.

                  • Markdown
                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/glob-stream)
                  • HTML
                    <a href="https://www.jsdocs.io/package/@types/glob-stream"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>