maddevsio / seo-analyzer

The library for analyze a HTML file to show all of the SEO defects
MIT License
78 stars 12 forks source link

Client side options #36

Open iplanwebsites opened 3 months ago

iplanwebsites commented 3 months ago

We can't fs and http.Agent in the browser, but it'd be nice to process strings of htmls.

ex:

export async function getSeoData(html) {
  const seo = new SeoAnalyzer();
  const result = await seo.inputHTMLString(html).outputObject().run();
  return result;
}

This throws error TypeError: Class extends value undefined is not a constructor or null.