9 points · by medv · 8y ago · 12 comments
Mostly because its lack of learning curve, fx is much better positioned to be used by all people who don't love jq but just use it because there aren't other options.
Here's a quick command to output a list of recent files on Linux:
xml2json < ~/.local/share/recently-used.xbel | ramda '.xbel.bookmark |> pluck \href |> map replace /file:\/\//, ""' -o raw
1. https://github.com/raine/ramda-cli
2. http://ramdajs.com/
3. http://livescript.net/ curl 'https://<redacted Algolia url>' | ramda '.hits |> map pick <[title url story_url objectID points num_comments]> |> evolve title: take 2 |> sort (.points) |> reverse'It's even alluded to on the project homepage:
> jq is written in portable C, and it has zero runtime dependencies. You can download a single binary, scp it to a far away machine of the same type, and expect it to work.
Now fx has standalone binary (linux, macos, win): https://github.com/antonmedv/fx/releases
I don't agree this is a feature. An Javascript implementation of a command line tool is a terrible idea performance wise. There is good reasons jq is written in C.