How to use htmlmetaparser - 1 common examples

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 1 year ago

Package Health Score

51 / 100
Full package analysis

Popular htmlmetaparser functions