Find your quick news byte at your terminal.
You can download the executable directly from GitHub.
deno install --allow-net --allow-read --allow-write --allow-env -n news-cli https://raw.githubusercontent.com/bhumijgupta/Deno-news-cli/master/mod.ts
- Get news headline
- Get news by category
- Get news including a keyword
- Search for news from international sources
Running news-cli -latest -c technology -q Google
will give output:
- Create you free account on https://newsapi.org/.
- Run the command to setup your api key
news-cli --config <API_KEY>
- Run the following command to get more info
news-cli --help
Run news-cli
in your terminal followed by any of the filters
Optional filters:
-h, --help Shows this help message and exits
-l, --latest If the flag is set, then news will be returned only from latest headlines
-q, --query Find news related to a specific keyword
-c, --category Find news in a valid category (only applicable if used with -l, --latest). The valid categories are: business, entertainment, general, health, science, sports, technology
--config <API_KEY> Set API key for news API. The key can be received from https://newsapi.org/
The project uses Deno's inbuilt formatter. You can manually lint code using
deno fmt
if (repo.isAwesome || repo.isHelpful) {
StarRepo();
}