A text processing language in the order of awk
npm install skua-cli> A text processing language in the order of awk
``sh`
$ npm install -g skua-cli
The following is an implementation of McIlroy's famed
one-liner in
skua.
`sh
$ cat README.md | skua "(flatMap (split /[^A-Za-z]/))
(filter (compose not (test /^$/)))
(map toLower)
(toArray)
(map (countBy identity))
(map (fanout (zipWith (sandwich \" \")) values keys))
(flatMap (sort naturalSort))
(take 4)"
6 skua
4 sh
3 cat
3 flatmap
`
`sh`
$ cat README.md | skua "(filter (test /usage/))"usage
`sh``
$ cat package.json | skua "(squash)
(flatMap (pipe parse (prop \"dependencies\") keys))"
ramda
rx
rx-node