CLI wrapper for mozilla/readability.
$ npm install -g
NOTE: readability
can be replaced with node .
in each example to run readability-cli from the repository root.
$ curl -s https://blog.mozilla.org/firefox/reader-view/ \
| tr -d "\n\r" \
| readability
NOTE: This example requires jq.
$ rm -f read.html \
&& curl -s https://blog.mozilla.org/firefox/reader-view/ \
| tr -d "\n\r" \
| readability \
| jq -r ".content" > read.html \
&& open read.html
$ cat <<EOF | tr -d "\n\r" | readability
<!DOCTYPE html>
<html>
<head>
<title>Readability</title>
</head>
<body>
Hello, world!
</body>
</html>
EOF
$ npm uninstall -g readability