You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

callback-sequence

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

callback-sequence

Make a new callback to run input callbacks in sequence

1.0.0
Source
npmnpm
Version published
Weekly downloads
90
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

callback-sequence

Make a new callback to run input callbacks in sequence

It is meant to make it easy to construct a gulp task from a sequence of callbacks.

Usage

var sequence = require('callback-sequence');
var Readable = require('stream').Readable;
var gulp = require('gulp');

gulp.task('publish', sequence(
  read, lint, warn, bump
));

function lint() {
}

function warn(cb) {
  process.nextTick(cb);
}

function bump() {
  return Promise.resolve();
}

function read() {
  var s = Readable();
  s.push(null);
  return s;
}

cb = sequence(callbacks)

callbacks

Type: Array

Each element in callbacks is a gulp task callback.

cb

Type: Function

Receives a done callback, which can be used as a gulp task callback.

cb will run callbacks in sequence.

Keywords

gulp

FAQs

Package last updated on 31 Jul 2015

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