New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fork-pipe

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fork-pipe

Inline fork/join stream processing for gulp.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

fork-pipe

Inline fork/join stream processing.

Overview

Primarily intended for use with gulp, allows inline fork/join stream processing in a pipeline.

Installation

For the latest version:

npm install fork-pipe

Usage

var fork = require("fork-pipe")
  , gulp = require("gulp")
  , ts = require("gulp-typescript")
  , sourcemaps = rquire("gulp-sourcemaps");

gulp.task("build", () => gulp.src("**/*.ts")
    .pipe(sourcemaps.init())
    .pipe(ts())
    .pipe(fork()) // fork the output of ts()

    // add a fork to handle the .d.ts output
    .add(out => out.dts)

    // add a fork to handle the .js output
    .add(out => out.js.pipe(sourcemaps.write(".")))

    // join the respective forks together into a merge2 stream and pipe the merged results
    .pipe(gulp.dest("."));

Keywords

gulp

FAQs

Package last updated on 26 Jun 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