hacker-feeds-cli
Version:
A command line tool for hacker news & product hunt feeds.
81 lines (59 loc) • 3.33 kB
Markdown
<div align="center">
# 📰 hacker-feeds-cli
A command line tool for [Hacker News](https://news.ycombinator.com/)、 [Product Hunt](https://www.producthunt.com/)、 [GitHub Trending](http://github.com/trending) 、[Reddit](https://www.reddit.com/) and [V2EX](https://www.v2ex.com/) feeds.
[](https://www.reddit.com/) [](http://github.com/trending) [](https://news.ycombinator.com/) [](https://www.producthunt.com/) [](https://www.v2ex.com/)
</div>
## Usage
```bash
# install
> npm install -g hacker-feeds-cli
# command option
> hfeeds help
# hf for short
> hf news
# config cli
> hf config
```

## Resource Support
Because most of the web servers are located abroad, please make sure your network can access the above website properly. You can try pinging the following domains.
```console
ping github.com
ping www.v2ex.com
ping hacker-news.firebaseio.com
ping api.producthunt.com
ping www.reddit.com
```
- [GitHub](http://github.com/)
- [Hacker News](https://news.ycombinator.com/)
- [Product Hunt](https://www.producthunt.com/)
- [Reddit](https://www.reddit.com/)
- [V2EX](https://www.v2ex.com/)
| Resource | Sub Command | Parameters | Screenshot |
| --- | --- | --- | --- |
| [GitHub](http://github.com/) | `github` | `-l, --lang`<br>`-s, --since` |  |
| [Product Hunt](https://www.producthunt.com/) | `product` | `-c, --count`<br>`-p, --past` |  |
| [Hacker News](https://news.ycombinator.com/) | `news` | `-t --top` |  |
| [Reddit](https://www.reddit.com/) | `reddit` | `-t --topic`<br>`-s --sort` |  |
| [V2EX](https://www.v2ex.com/) | `v2ex` | `-n --node` |  |
## Language Support
Input sub-command `config` to config cli language.
```bash
> feeds config
? Please select a language(Default EN): (Use arrow keys)
EN(English)
❯ ZH(简体中文)
```

## TODO
- [x] i18n support
- [x] Accept resouce param
- [ ] Hyper link support
- [ ] Support Translate
- [ ] Add more resource
## API References
- [Hacker News API](https://github.com/HackerNews/API)
- [Product Hunt API](https://github.com/producthunt/producthunt-api)
- [GitHub Trending API](https://github.com/huchenme/github-trending-api)
- [Reddit API](https://www.reddit.com/dev/api/)
- [V2EX API](https://v2ex.com/p/7v9TEc53)