Package Exports
- mdn-scraper
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mdn-scraper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
MDN Scraper
Searches MDN for JavaScript built-in objects, statements, expressions and more.
Installation
$ npm install mdn-scraperUsage
CommonJS require
const search = require("mdn-scraper").default;
// This must be in an async function
const result = await search("String.split");
console.log(result);ES6 import
import search from "mdn-scraper";
// This must be in an async function
const result = await search("String.split");
console.log(result);API
Make a request to this url, replacing the QUERY_STRING with your query
Endpoint: https://mdn-scraper.vercel.app/api/mdn?query=QUERY_STRING
Note: A queryString is an URL encoded string