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

wpipe

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wpipe

watch files and execute commands

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

wpipe

Build Status

Pipe the contents of one file into a command and write the result to another file, and do this every time the input file changes. Kind of like an extremely simple CLI for watchbuild.

Installation

$ npm install -g wpipe

Usage

wpipe <in> <out> <cmd>

Where <in> is a glob pattern or file path of the file to watch, <out> is the output file, and <cmd> is the command that is used to transform file contents.

Basically, all that wpipe does is execute something like this:

$ cat <in> | <cmd> > <out> # except you replace <in>, <out> & <cmd>
                            # with actual file names

Every time <in> changes.

API

wpipe(infile, outfile, cmd)

Start watching infile and transform its contents by piping them into cmd and write the result to outfile.

License

MIT License. See ./LICENSE for details.

FAQs

Package last updated on 30 May 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