Quick tool for search in Mozilla Developer Network from command line, built with nodejs.
npm install -g git+https://github.com/Klyyssi/mdn-search.git
mdn [options] [command] <query>
open
opens the first search result in the browser. If open is not specified, results are listed.
-o
,--open
same asmdn open
.-p
,--page
result's page. Defaults to 1.-l
,--limit
results per page. Defaults to 5.-t
,--topic
filter to apply (ie. js). Defaults to none.
List a few results:
mdn concat
List a few results with topic=js:
mdn -t js string
Open the first result:
mdn open css transitions