Giter VIP home page Giter VIP logo

deno-news-cli's Introduction

News CLI ASCII art

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:

Screenshot

Setup

  1. Create you free account on https://newsapi.org/.
  2. Run the command to setup your api key
    news-cli --config <API_KEY>
    
  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 <API_KEY>		 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

forthebadge

Bhumij Gupta

GitHub followers LinkedIn Twitter URL


if (repo.isAwesome || repo.isHelpful) {
  StarRepo();
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.