# gulp-wait

> A gulp task that inserts a delay before calling the next function in a chain.

Latest version **0.0.2** (published 2014-01-08) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install gulp-wait
pnpm add gulp-wait
yarn add gulp-wait
bun add gulp-wait
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-01-08 |
| First published | 2014-01-08 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Brian Partridge |
| Maintainers | bpartridge83 |
| Keywords | gulp, wait, delay, gulpplugin |

## Links

- npm: https://www.npmjs.com/package/gulp-wait
- Repository: https://github.com/bpartridge83/gulp-wait
- Issues: https://github.com/bpartridge/gulp-wait/issues
- npm.io page: https://npm.io/package/gulp-wait

## Dependencies (1)

- [map-stream](https://npm.io/package/map-stream.md) 0.0.4

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2014-01-08
- 0.0.1 — 2014-01-08

## README

gulp-wait
=========

A gulp task that inserts a delay before calling the next function in a chain.

## Example

The following example will watch for changes to templates and delay the livereload server refresh until after the nodemon script is expected to have restarted.

```javascript
// Gulpfile.js
var gulp = require('gulp')
  , r = require('tiny-lr')
  , refresh = require('gulp-livereload')
  , nodemon = require('gulp-nodemon')
  , wait = require('../gulp-wait')
  , server = lr();

gulp.task('dev', function () {

  gulp.src('./index.js')
    .pipe(nodemon());

  server.listen(35729, function (err) {

  	if (err) return console.log(err);

  	gulp.watch('./app/views/**/*.html', function (e) {
      gulp.src(e.path)
        .pipe(wait(1500))
        .pipe(refresh(server));
    });

  });

})

```

Yes, ideally there would be an event from nodemon to trigger the livereload.

---
_Source: https://npm.io/package/gulp-wait · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
