
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
readability-cli
Advanced tools
Firefox Reader Mode in your terminal - get useful text from a web page using Mozilla's Readability library
readability-cli takes any HTML page and strips out unnecessary bloat by using Mozilla's Readability library. As a result, you get a web page which contains only the core content and nothing more. The resulting HTML is suitable for terminal browsers, text readers, and other uses.
Here is a before-and-after comparison, using an article from The Guardian as a test subject.
So much useless stuff that the main article does not even fit on the screen!
Ah, much better.
readability-cli can run via either Node.js or its newer and safer Rust counterpart Deno.
Install the program and its man page:
npm install -g readability-cli
(Note to package maintainers: it might be a good idea to provide a symlink, so the man page can be accessed either as readability-cli(1)
or as readable(1)
)
Deno support is still in development, running the script directly with deno run <URL>
is not supported.
However, you can clone this Git repository and easily run the readable.ts
script.
git clone https://gitlab.com/gardenappl/readability-cli/
cd readability-cli
./readable.ts
You can use deno run
with the locally-downloaded script to fine-tune permissions, for example:
curl https://example.com | deno run --no-check readable.ts
By default Deno does not allow reading & writing files or accessing the network, meaning you have to rely on piping data in and out.
Read more about Deno permissions in their manual.
(Package maintainers might consider adding a readable-sandbox
executable which will run readable
with restrictions)
Arch Linux users may use the "official" AUR packages:
readable [SOURCE] [options]
readable [options] -- [SOURCE]
where SOURCE
is a file, an http(s) URL, or '-' for standard input
See readability-cli(1) for more information, and usage examples.
See locales.
I know that it's slow, but JavaScript is the most sensible option for this, since Mozilla's Readabilty library is written in JavaScript. There have been ports of the Readability algorithm to other languages, but Mozilla's version is the only one that's actively maintained as of 2020.
FAQs
Firefox Reader Mode in your terminal - get useful text from a web page using Mozilla's Readability library
The npm package readability-cli receives a total of 30 weekly downloads. As such, readability-cli popularity was classified as not popular.
We found that readability-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.