Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Caches data from the Mozilla Developer Network wiki and provides methods to return links to documentation for JavaScript and DOM objects.
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.
Install:
npm install mdn-linker
Require:
const mdn = require('mdn-links');
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'
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'));
});
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.
FAQs
Caches data from the Mozilla Developer Network wiki and provides methods to return links to documentation for JavaScript and DOM objects.
We found that mdn-links demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.