Skip to content

a CLI for accessing mozilla dev network docs in your terminal

Notifications You must be signed in to change notification settings

jtrv/mdn-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

You must have rust installed in order to use mdn-cli, to create the binary for mdn-cli:

  git clone https://github.com/chrisdickinson/mdn-cli.git
  cd mdn-cli/
  cargo install --path .

License

MIT

About

a CLI for accessing mozilla dev network docs in your terminal

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%