Skip to content

A CLI for Mozilla Readability. Get clean, uncluttered, ready-to-read HTML from any webpage!

License

Notifications You must be signed in to change notification settings

NightMachinery/readability-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

readability-cli

A CLI for Mozilla's Readability.

Install

To install globally with yarn:

yarn global add mozilla-readability-cli

To install globally with npm:

npm install -g mozilla-readability-cli

Usage

# run readability --help for the latest version, I just copy it here once in a while.

Usage: readability [options] <url>

Sanitizes stdin, parses the result with Mozilla Readability, somewhat sanitizes the output again, and finally prints it to stdout. Note that you need to also specify the URL in addition to feeding us the HTML in stdin. Using an empty URL seems to work though.

Options:
  -V, --version  output the version number
  -h, --help     display help for command

Examples

curl https://example.com | readability https://example.com

readmoz () {
    local url="$1"
    local html="$(curl "$url" | readability "$url")"
    print -nr -- "$html"
}

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%