🔍Search
search(query: string, {
lang?: "html" | "css" | "js", // Default: js
}): Array<string>
const { mdn } = require('search-docs');
mdn.search(`h`, { lang: "html" });
[
'Input#checkbox',
'Input#hidden',
'Input#month',
'Input#search',
'Global_attributes#enterkeyhint',
'Global_attributes#hidden',
'Global_attributes#spellcheck',
'Balise#h1',
'Balise#h2',
'Balise#h3',
'Balise#h4',
'Balise#h5',
'Balise#h6',
'Balise#head',
'Balise#header',
'Balise#hgroup',
'Balise#hr',
'Balise#html',
'Balise#shadow',
'Balise#th',
'Balise#thead'
]
Last updated