block by joyrexus 7830976

Tranform json with unix-style filters

Quick demonstration of how to filter/transform newline-delimited JSON in unix-pipeline fashion.

Run npm install to install dependencies.

Try filter.coffee < data.json or …

cat data.json | filter.coffee

… or …

URL='https://gist.github.com/joyrexus/7830976/raw/c11e3e10d77777acd61266658e21fea06181a024/data.json.lsv'
get.coffee $URL | filter.coffee

data.json.lsv

filter.coffee

get.coffee

package.json