# mdn-links

> Caches data from the Mozilla Developer Network wiki and provides methods to return links to documentation for JavaScript and DOM objects.

Latest version **0.1.0** (published 2015-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install mdn-links
pnpm add mdn-links
yarn add mdn-links
bun add mdn-links
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-07-01 |
| First published | 2015-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andy Earnshaw |
| Maintainers | andyearnshaw |
| Keywords | mdn, documentation, yuidoc |

## Links

- npm: https://www.npmjs.com/package/mdn-links
- npm.io page: https://npm.io/package/mdn-links

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-07-01

## README

# MDN Links 
__MDN Links__ is a utility package for generating links to Mozilla Developer Network documentation pages. It's primary use is for generating links for YUIDoc to use for native classes and methods. Currently, only links to the Web API Reference and JavaScript Global Objects pages are supported.

## Usage

Install:

    npm install mdn-linker

Require:

    const mdn = require('mdn-links');

### Retrieve a link
Simply pass the name of the global object and, optionally, one of its members to the `getLink()` method:

    mdn.getLink('Array');
    //-> 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array'

    mdn.getLink('Blob', 'slice');
    //-> 'https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice'

### Update cache
A cached set of links is included in the package, but if these become stale they can be updated with the `update()` method:

    mdn.update(function () {
        console.log(mdn.getLink('Array', 'isArray'));
        console.log(mdn.getLink('Array', 'prototype.forEach'));
    }); 

## License

Copyright (c) 2015 Andy Earnshaw

This software is licensed under the MIT license.  See the `LICENSE.txt` file
accompanying this software for terms of use.

---
_Source: https://npm.io/package/mdn-links · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
