Skip to content

maboiteaspam/npi-utils

Repository files navigation

npi-utils

npi utils to build the stream

Install

npm i @maboiteaspam/npi-utils --save

Usage

var bubble  = require('@maboiteaspam/npi-utils/bubble');
var spawn   = require('@maboiteaspam/npi-utils/spawn');
var router  = require('stream-message-router')

var npi = router('npi');

npi
  .pipe(spawn('npm', 'init' , '--yes'))
  .pipe(bubble('message', {message: 'file', 'body':'package.json'}))

Read more