Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-until

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-until

Wait for an evaluation function to become true in your gulp pipe.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

gulp-until

This package evaluates a function until it returns true to go to the next pipe.

A true-ish return value like 1 or {} would not trigger the next pipe.
The function has to explicitly return true or false.

Installation

$ npm install gulp-until --save-dev
$ yarn add gulp-until --dev

Example Usage

Either pass a function directly:

  import until from 'gulp-until';

  return gulp.src(config.src)
    .pipe(until(() => {
      // Once this function returns true for the first time,
      // the next pipe is executed.
    }))
    .pipe(gulp.dest(config.dest));

The example above uses the ES6 syntax.

Or additionally give gulp-util a custom time to wait between checks.
Default: 100

  var until = require('gulp-until');

  return gulp.src(config.src)
    .pipe(until({
      wait: 800, // ms to wait between checks.
      check: function() {
        // Again the evaluation function.
      }
    }))
    .pipe(gulp.dest(config.dest));

Keywords

FAQs

Package last updated on 17 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc