A generalized metadata extractor for breadcrum.net. Not perfect, but a start. Nothing in this is very set in stone. Ideas welcome.
import { extractMeta } from '@breadcrum/extract-meta'
const { title, summary, tags } = await extractMeta(document)
// String title
// String summary
// Array of tag strings
- sindresorhus/article-title: used as the starting point for this module.
- resonance-cascade/particular-pinboard: Refactored to work with jsdom and integrated many ideas from many forks.