Socket
Socket
Sign inDemoInstall

meta-extractor

Package Overview
Dependencies
48
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    meta-extractor

Simple, stream based, html meta data extractor


Version published
Weekly downloads
230
increased by52.32%
Maintainers
1
Install size
3.28 MB
Created
Weekly downloads
 

Readme

Source

meta-extractor

NPM Version NPM Downloads

Super simple and fast meta data extractor with low memory footprint.

Extracts:

  • title
  • description
  • charset
  • theme-color
  • rss/atom feeds
  • all opengraph meta data
  • all twitter meta data
  • all app links meta data
  • all vk meta data
  • all unique image urls (absolute)
  • returns mime and extension for binary files without downloading the whole file

install

npm i meta-extractor

usage

const extract = require('meta-extractor');

extract({ uri: 'http://www.newyorker.com' }, (err, res) =>
  console.log(err, res)
);

or;

const res = await extract({ uri: 'http://www.newyorker.com' });
console.log(res);

If no callback provided returns a Promise.

The first parameter opts as in got module and:

  • uri — uri to get meta from.
  • rxMeta — regexp, custom regexp for meta data.
  • limit — number, response body size limit in bytes. Default 2Mb.

License MIT;

© velocityzen

Keywords

FAQs

Last updated on 04 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc