node-pipe2

exposes the pipe2 system call for building unix pipelines/filters

Usage no npm install needed!

<script type="module">
  import nodePipe2 from 'https://cdn.skypack.dev/node-pipe2';
</script>

README

node-pipe2

Build Status

This package provides access to the pipe2 system call available on OSX, Linux and other UNIX variants.

Usage

var pipe2 = require('node-pipe2');

pipe2(function(err, rfd, wfd) {
    if (err) {
        console.log('pipe failed, maybe out of FDs? ' + err);
        return;
    }
    // use rfd and wfd
});