Run JS from stdin.
$ curl api.com/ressource | plog "resp.data.map(e => e.name)"
$ yarn global add plog-cli
# or
$ npm install plog-cli --global
$ cat package.json | plog data.version
0.0.1
$ cat package.json | plog "data => Object.keys(data.dependencies))"
[
'cryptr',
'date-fns'
...
$ cat package.json | plog "foobar.version"
0.0.1
$ cat Dockerfile | plog "data.split('\n').find(e => e.includes('COPY'))"
COPY ./newrelic.js /code/newrelic.js
$ cat package.json | plog "_.toPairs(data.dependencies).map(p => p.join('@')).join(' ')"
lodash@^4.17.11 @babel/core"@^7.0.0-beta.52