2.1.0 • Published 3 years ago

meta-extractor v2.1.0

Weekly downloads
302
License
MIT
Repository
github
Last release
3 years ago

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

2.1.0

3 years ago

2.0.0

4 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.7

7 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago