# extract-html-meta **Repository Path**: mirrors_regular/extract-html-meta ## Basic Information - **Project Name**: extract-html-meta - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-13 - **Last Updated**: 2026-05-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README html-meta-meta --- The inverse of [html-inject-meta](https://npmjs.com/packages/html-inject-meta) ## Example ``` js const extract = require('html-extract-meta') process.stdin.pipe(extract(onMeta)) process.stdin.resume() function onMeta(err, meta) { ... } ``` ## API `extract(cb)` returns a transparent trhough stream (its output is the same as its input). Upon having seen the `` tag in the input, it calls `cb(err, meta)`, where meta has these propertues: - name - description - author - generator (coming from `` - http (an object with http headers coming from `` tags If there are meta tags with name or property attributes containing a colon (:), they are considered "namespaced meta tags" and occur in meta.namespaced. For example, `` shows up as `meta.namespaced.twitter.ceator` ## CLI `html-extract-meta < in.html > out.json [--through]` Reads html from stdin and outputs meta json to stdout. if `--through` is given, outputs meta json to stderr and outputs html to stdout. License: MIT