https://github.com/bhumijgupta/deno-news-cli
A deno based CLI app to show quick news at your terminal
https://github.com/bhumijgupta/deno-news-cli
deno deno-beginner deno-cli hacktoberfest news-app news-cli
Last synced: about 1 year ago
JSON representation
A deno based CLI app to show quick news at your terminal
- Host: GitHub
- URL: https://github.com/bhumijgupta/deno-news-cli
- Owner: bhumijgupta
- Created: 2020-05-17T18:24:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-11T07:19:46.000Z (over 5 years ago)
- Last Synced: 2025-04-02T22:22:42.752Z (about 1 year ago)
- Topics: deno, deno-beginner, deno-cli, hacktoberfest, news-app, news-cli
- Language: TypeScript
- Homepage:
- Size: 114 KB
- Stars: 19
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

Find your quick news byte at your terminal.
## Installation
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
```
## Features
- Get news headline
- Get news by category
- Get news including a keyword
- Search for news from international sources
## Example
Running `news-cli -latest -c technology -q Google` will give output:

## Setup
1. Create you free account on [https://newsapi.org/](https://newsapi.org/).
2. Run the command to setup your api key
```
news-cli --config
```
3. Run the following command to get more info
```
news-cli --help
```
## Usage
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 Set API key for news API. The key can be received from https://newsapi.org/
```
## Linting
The project uses Deno's inbuilt formatter. You can manually lint code using
```
deno fmt
```
## Author
[](https://forthebadge.com)
### Bhumij Gupta
 [](https://www.linkedin.com/in/bhumijgupta/) [](https://twitter.com/bhumijgupta)
---
```javascript
if (repo.isAwesome || repo.isHelpful) {
StarRepo();
}
```