{"_id":"mdn-links","_rev":"241678","name":"mdn-links","description":"Caches data from the Mozilla Developer Network wiki and provides methods to return links to documentation for JavaScript and DOM objects.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"andyearnshaw","email":"andyearnshaw+npm@gmail.com"}],"time":{"modified":"2021-06-03T15:57:46.000Z","created":"2015-07-01T09:07:31.671Z","0.1.0":"2015-07-01T09:07:31.671Z"},"users":{},"author":{"name":"Andy Earnshaw"},"versions":{"0.1.0":{"name":"mdn-links","version":"0.1.0","description":"Caches data from the Mozilla Developer Network wiki and provides methods to return links to documentation for JavaScript and DOM objects.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["mdn","documentation","yuidoc"],"author":{"name":"Andy Earnshaw"},"license":"MIT","gitHead":"c7d2b8c1ea7699266dddf8deb98ea18fb1256137","_id":"mdn-links@0.1.0","_shasum":"e24c83b97cb4c5886cc39f2f780705fbfe273aa5","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"andyearnshaw","email":"andyearnshaw+npm@gmail.com"},"dist":{"shasum":"e24c83b97cb4c5886cc39f2f780705fbfe273aa5","size":33893,"noattachment":false,"key":"/mdn-links/-/mdn-links-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mdn-links/download/mdn-links-0.1.0.tgz"},"maintainers":[{"name":"andyearnshaw","email":"andyearnshaw+npm@gmail.com"}],"directories":{},"publish_time":1435741651671,"_cnpm_publish_time":1435741651671,"_hasShrinkwrap":false}},"readme":"# MDN Links \n__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.\n\n## Usage\n\nInstall:\n\n    npm install mdn-linker\n\nRequire:\n\n    const mdn = require('mdn-links');\n\n### Retrieve a link\nSimply pass the name of the global object and, optionally, one of its members to the `getLink()` method:\n\n    mdn.getLink('Array');\n    //-> 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array'\n\n    mdn.getLink('Blob', 'slice');\n    //-> 'https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice'\n\n### Update cache\nA cached set of links is included in the package, but if these become stale they can be updated with the `update()` method:\n\n    mdn.update(function () {\n        console.log(mdn.getLink('Array', 'isArray'));\n        console.log(mdn.getLink('Array', 'prototype.forEach'));\n    }); \n\n## License\n\nCopyright (c) 2015 Andy Earnshaw\n\nThis software is licensed under the MIT license.  See the `LICENSE.txt` file\naccompanying this software for terms of use.\n\n","_attachments":{},"license":"MIT"}