Search-docs
  • 👋Welcome
  • ⬇️Installation and establishment
  • Docs
    • Node.js
      • 🔍Search
      • 🏗️buildEmbed
    • MDN
      • 🔍Search
      • 🧲Get
  • 📞Contact me
  • 💻Contribute
  • 📝Todo
Powered by GitBook
On this page
  1. Docs
  2. MDN

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'
]
PreviousMDNNextGet

Last updated 2 years ago

🔍