mdn

1.0.2 • Public • Published

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 defineproperty

Opens the Object.defineProperty documentation on MDN in your browser.

$ mdn css transitions

Opens the Using CSS transitions documentation on MDN in your browser.

$ mdn array#Methods

Opens 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 mdn

License

MIT

Package Sidebar

Install

npm i mdn

Weekly Downloads

1

Version

1.0.2

License

BSD

Unpacked Size

2.35 kB

Total Files

3

Last publish

Collaborators

  • cmtegner