-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |