@types/gulp-if

  • Version 3.0.4
  • Published
  • 4.66 kB
  • 3 dependencies
  • MIT license

Install

npm i @types/gulp-if
yarn add @types/gulp-if
pnpm add @types/gulp-if

Overview

TypeScript definitions for gulp-if

Index

Functions

Functions

function gulpIf

gulpIf: (
condition: gulpMatch.MatchCondition,
stream: NodeJS.ReadWriteStream,
elseStream?: NodeJS.ReadWriteStream,
minimatchOptions?: minimatch.IOptions
) => NodeJS.ReadWriteStream;
  • gulp-if will pipe data to stream whenever condition is truthy. If condition is falsey and elseStream is passed, data will pipe to elseStream After data is piped to stream or elseStream or neither, data is piped down-stream.

    Parameter condition

    whether input should be piped to stream

    Parameter stream

    the stream to pipe to if condition is true

    Parameter elseStream

    (optional) the stream to pipe to if condition is false

    Parameter minimatchOptions

    (optional) the minimatch options when matching glob conditions

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/gulp-if.

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