Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisdickinson/mdn-cli
a CLI for accessing mozilla dev network docs in your terminal
https://github.com/chrisdickinson/mdn-cli
Last synced: 7 days ago
JSON representation
a CLI for accessing mozilla dev network docs in your terminal
- Host: GitHub
- URL: https://github.com/chrisdickinson/mdn-cli
- Owner: chrisdickinson
- Created: 2020-10-10T02:27:46.000Z (about 4 years ago)
- Default Branch: latest
- Last Pushed: 2022-09-29T01:46:05.000Z (about 2 years ago)
- Last Synced: 2024-04-23T19:37:53.952Z (7 months ago)
- Language: Rust
- Homepage:
- Size: 65.4 KB
- Stars: 19
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mdn-cli
A command line tool for displaying the top DuckDuckGo search result for a MDN
query in your terminal. Automatically paginated.```
$ mdn accept header# Accept
The **`Accept`** request HTTP header advertises which content types, expressed as [MIME types][1], the client is able to understand. Using [content negotiation][2],
the server then selects one of the proposals, uses it and informs the client of its choice with the [`Content-Type`][3] response header. Browsers set adequate values
for this header depending on the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an
image, video or a script.[...]
```## Colophon
Results via DuckDuckGo's [Instant Answer] API.
[Instant Answer]: https://duckduckgo.com/api
Crates:
- [`html2text`](https://lib.rs/html2text)
- [`bat`](https://lib.rs/bat)
- [`scraper`](https://lib.rs/scraper)
- [`surf`](https://lib.rs/surf)
- [`term_size`](https://lib.rs/term_size)## Installation
You must have rust installed in order to use mdn-cli, to create the binary for mdn-cli:
```sh
git clone https://github.com/chrisdickinson/mdn-cli.git
cd mdn-cli/
cargo install --path .
```## License
MIT