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' }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.7
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.7
    2
  • 0.0.6
    2

Package Sidebar

Install

npm i pipe-map

Weekly Downloads

4

Version

0.0.7

License

none

Last publish

Collaborators

  • ryanstevens