Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.06 KB

File metadata and controls

21 lines (16 loc) · 1.06 KB

@breadcrum/extract-meta

Actions Status latest version downloads

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