Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.
/ shipe Public archive

Use Node in Shell pipelines

License

Notifications You must be signed in to change notification settings

zacanger/shipe

Repository files navigation

shipe

Use Node in Shell pipelines

Donate


Installation

npm i -g shipe, or use on the fly with npx shipe

Usage

echo foo | shipe 'a => a.trim() + "bar"' => foobar

More complex example:

~ echo .bashrc | npx shipe "a=>{const b=require('fs').readFileSync(a.trim(),'utf8').split('\n');return b[b.length - 2]}" | rev
npx: installed 1 in 1.057s
"nib/XIFERP_N$:"=+HTAP || ]] *":nib/XIFERP_N$:"* == :HTAP$: [[
~ 

LICENSE