JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 25
  • Score
    100M100P100Q49715F
  • License ISC

Read Philippine news right in your terminal.

Package Exports

  • balita

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (balita) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

balita

Philippine News right in your command line.

Install

npm install -g balita

It's likely you'll need to sudo that.

Usage

balita

Why

I just woke up one morning (today, Saturday, February 28) and thought, I want to be able to read news on my terminal, I'm on the terminal all the damned time anyway. So there, a couple of hours was spent writing this.

Where are the tests?

I uh, well do you want to write it? Fork and send me a PR. I really didn't plan to spend a lot of time on this tiny project, so there's no tests and all that jazz. :)

What's the news source?

It's just Google News RSS with the "Philippines" filter on. The full articles are loaded via the news sites themselves.

How it works

The RSS is stripped for titles and links and that's your main menu.

The full articles are loaded directly from the news sites, the whole page is loaded and is passed through node-readability, this finds the article in the page. I apply some cleanup myself like condensing the paragraph spacing, indentations, and line lengths by word.