JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q35808F
  • License MIT

Query the MDN website with a search term.

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.

npm Maintenance

Installation

$ npm install mdn-scraper

Usage

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