nasa8x / html-metadata-parser

Html metadata scraper and parser for Node.js
41 stars 18 forks source link

Parsing existing HTML? #1

Open Furry opened 4 years ago

Furry commented 4 years ago

Are you open to PRs? If so, I'd like to add the utility to parse existing HTML returned other HTTP libraries to get meta tag information

const Meta = require('html-metadata-parser');

Meta.parseHtml(`<meta name="author" content="John Doe">`, (err, res) => {
    // handle r es
})
snifhex commented 4 years ago

It would be great.