#command-line-tool #search #documentation #mozilla #developer #networking #terminal

app mdn

A command line tool to search and display documentation from Mozilla Developer Network

2 releases

0.1.3 Oct 12, 2020
0.1.2 Oct 11, 2020

#41 in #mozilla

MIT and LGPL-3.0-or-later

22KB
91 lines

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.

Crates:

Installation

TODO

License

MIT

Dependencies

~30–43MB
~643K SLoC