1.0.2 • Published 3 years ago
mdn v1.0.2
mdn
CLI for easily opening JavaScript documentation on the Mozilla Developer Network (MDN) in your browser. The utility uses the mdn.io "passive URL shortener", which effectively works like the "I'm feeling lucky" feature on your favorite search engine.
Usage
Usage: mdn <search terms>Examples
$ mdn definepropertyOpens the Object.defineProperty documentation on MDN in your browser.
$ mdn css transitionsOpens the Using CSS transitions documentation on MDN in your browser.
$ mdn array#MethodsOpens the Array documentation on MDN in your browser and jumps down to the Methods section.
Compatability
mdn uses open which tries to find a suitable command for opening URLs in your browser, regardless of which platform you're on. If you're having problems using mdn on your platform, please raise a ticket in their issue tracker.
Install
With NPM do:
npm install -g mdnLicense
MIT