Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bolasblack/ramda-cli
Process stdin with [ramda](http://ramdajs.com/)
https://github.com/bolasblack/ramda-cli
Last synced: 11 days ago
JSON representation
Process stdin with [ramda](http://ramdajs.com/)
- Host: GitHub
- URL: https://github.com/bolasblack/ramda-cli
- Owner: bolasblack
- Created: 2016-11-05T06:28:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-30T15:38:15.000Z (about 8 years ago)
- Last Synced: 2024-11-10T03:36:31.762Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ramda-cli
Usage:
ramda [-h] [-p]
Options:
-h, --help output this message
-p, --plain use `#toString` instead of `JSON.stringify` to print resultExamples:
echo '[{"a":1, "b": 2}, {"b": 3}]' | ramda "map(compose(num => String(num), prop('b')))"
# => ["2","3"]echo '[{"a":1, "b": 2}, {"b": 3}]' | ramda "map(compose(num => String(num), prop('b')))(data).join(' ')" -p
# => 2 3echo '[{"a":1, "b": 2}, {"b": 3}]' | ramda "data.reduce((memo, elem) => memo + elem.b, 0)"
# => 5