1.0.9 • Published 6 years ago

mdn-docs-search v1.0.9

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Mdn-docs-search

Downloads Version Build Status

A small package made to search the mdn docs

Usage

Example:

const MDNDocs = require('mdn-docs-search');

// Create an async function for resolving the result
async function searchDocs() {
  const result = await MDNDocs.search('Map.prototype.delete'); // Search the docs
  const docs = await MDNDocs.load(result); // Load the url from searching the docs
  return docs.name; // get the name
}

await searchDocs(); // Use the function

Properties

  • name - Name of the page
  • description - Description of the page, markdown support included
  • url - Url of the page
  • examples - Examples section of the page, if any
  • polyfill - Polyfill section of the page, if any
  • syntax - Syntax section of the page, if any
  • params - Parameters section of the page, parameters sorted and markdown support included
  • pageDescription - Description section of the page, if any, markdown support included
  • seeAlso - See also section of the page, if any, markdown support included
  • methods - Methods section of the page, if any
  • returnValue - Return value of the page, if any

Contributing

If you want to contribute with anything please open a pull request

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago