mdn-docs-search
v1.0.9
Published
Searches the mdn docs
Downloads
22
Readme
Mdn-docs-search
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 functionProperties
- name - Name of the page
- description - Description of the page, markdown support included
- url - Url of the page
- examples -
Examplessection of the page, if any - polyfill -
Polyfillsection of the page, if any - syntax -
Syntaxsection of the page, if any - params -
Parameterssection of the page, parameters sorted and markdown support included - pageDescription -
Descriptionsection of the page, if any, markdown support included - seeAlso -
See alsosection of the page, if any, markdown support included - methods -
Methodssection of the page, if any - returnValue -
Return valueof the page, if any
Contributing
If you want to contribute with anything please open a pull request
