Skip to content

enraiha0307/Silly-Reddit-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silly-Reddit-CLI

A really basic CLI which outputs a random post on terminal or in the browser according to what flag we pass.

I made this CLI during "Introduction to Nodejs, v2" course by "Scott Moss". You can also refer to his notes here

pic of the reddit cli

Prerequisites

Ensure you have node version greater than 14.0.0.

Steps to install

1.First clone the repo

git clone https://github.com/enraiha0307/Silly-Reddit-CLI.git

  1. Change directory to our repo
cd Silly-Reddit-CLI
  1. Run
npm install or npm i
  1. Now we'll have to install our reddit cli as global so run from inside our repo
npm install -g
  1. Now type reddit commands:
reddit --print //prints a randompost and its link on the terminal
reddit  //opens up the post in your default browser

About

A really basic CLI which outputs a random post on terminal or in the browser according to what flag we paas.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published