How to use the htmlmetaparser.Handler function in htmlmetaparser

To help you get started, we’ve selected a few htmlmetaparser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github blakeembrey / node-scrappy / src / scrape / plugins / html.ts View on Github external
return new Promise((resolve, reject) => {
    const handler = new Handler(
      (err, result) => {
        return err ? reject(err) : resolve(result)
      },
      {
        url: contentUrl
      }
    )

    stream.pipe(new WritableStream(handler, { decodeEntities: true }))
  })
}

htmlmetaparser

A `htmlparser2` handler for parsing rich metadata from HTML. Includes HTML metadata, JSON-LD, RDFa, microdata, OEmbed, Twitter cards and AppLinks.

Apache-2.0
Latest version published 11 months ago

Package Health Score

55 / 100
Full package analysis

Popular htmlmetaparser functions