pipe-map

0.0.7 • Public • Published

pipe-map

Crazy small utility to pipe in stream and transform each line on the fly

Specify a string as parameter "-m" and that expression will be evaluted and returned to standard out.

###Installation

npm install pipe-map -g

###Usage Example

cat phone_numbers.txt | pipe-map -m "'1-'+x"

###Pass through expression

pipe-map -m "x"

technically compiles to

function(x) { return x }

###Append string expression

pipe-map -m "x+'foo'"

technically compiles to

function(x) { return x + 'foo' }

Readme

Keywords

none

Package Sidebar

Install

npm i pipe-map

Weekly Downloads

0

Version

0.0.7

License

none

Last publish

Collaborators

  • ryanstevens