Skip to content

ozbe/readability-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

readability-cli

CLI wrapper for mozilla/readability.

Install

$ npm install -g

Examples

NOTE: readability can be replaced with node . in each example to run readability-cli from the repository root.

Fetch page and convert

$ curl -s https://blog.mozilla.org/firefox/reader-view/ \
    | tr -d "\n\r" \
    | readability

Create page to read

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

Pipe multi-line string

$ cat <<EOF | tr -d "\n\r" | readability
<!DOCTYPE html>
<html>
    <head>
        <title>Readability</title>
    </head>
    <body>
        Hello, world!
    </body>
</html>
EOF

Uninstall

$ npm uninstall -g readability

About

CLI wrapper around mozilla/readability

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published