Skip to content

Commit

Permalink
📖 DOC: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
msaaddev committed Nov 25, 2020
1 parent 15fbc4c commit 603374b
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
![stackoverflow-cli](images/cover.png)

<div align="center">
<b>Search any query on Stack Overflow without leaving your IDE</b>
<br>
<img src="https://img.shields.io/npm/v/cli-stackoverflow?color=%23f48024" alt="version">
<img src="https://img.shields.io/npm/dt/cli-stackoverflow?color=f48024" alt="downloads">
<img src="https://img.shields.io/npm/l/cli-stackoverflow?color=f48024" alt="license">
</div>

# 💥 stackoverflow-cli

- Search any query inside your terminal
- Top 10 threads
- Order the results in ascending/descending order
- Sort the results via relevance/votes/activity/creation

## ↓ INSTALL

```sh
# install the cli globally
npm i -g cli-stackoverflow

# use it via npx
npx cli-stackoverflow
```

## ⚡️ USAGE

You can run the CLI by executing following commands inside the terminal:

```sh
stack
```

### 📃 Guide

- <kbd>Right →</kbd> key – Next thread
- <kbd>Left ←</kbd> key – Prev thread
- <kbd>Up ↑</kbd> key – Next Answer
- <kbd>Down ↓</kbd> key – Prev Answer

![demo](images/demo.gif)

### 🏳 Flags

```sh
# CLI help
stack --help
```

![help text](images/cli-help.png)

```sh
# Order results in ascending order
stack --asc

# Sort results according to the most activity
stack --activity

# Sort results according to votes
stack --votes

# Sort results according to the creation
stack --creation
```

![flags](images/flags-demo.gif)

## 👨🏻‍💻 CONTRIBUTORS

- [Saad Irfan](https://github.com/msaaddev)
- [Aneesh Kodali](https://github.com/aneeshkodali)
- [Angelina Gasharova](https://github.com/angelinag)

## 🔑 LICENSE

- MIT

0 comments on commit 603374b

Please sign in to comment.