@breadcrum/extract-meta
v1.0.6
Published
Extract various metadata from html
Downloads
228
Readme
@breadcrum/extract-meta
A generalized metadata extractor for breadcrum.net. Not perfect, but a start. Nothing in this is very set in stone. Ideas welcome.
API
import { extractMeta } from '@breadcrum/extract-meta'
const { title, summary, tags } = await extractMeta(document)
// String title
// String summary
// Array of tag strings
See also
- 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.