0.2.5 • Published 10 years ago

web-metadata v0.2.5

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

#web-metadata

Retrieve a json object containing metadata from a url. Will return an object consisting of the <title>, url as well as any additional <meta/> information it is able to parse.

Example

Pull metadata from http://leap.it

javascript:

var metadata = require('web-metadata');
var opts = {
  url: 'http://leap.it'
};
metadata(opts, function (err, data) {
  // handle err or data here
  console.log(data.url);
  console.log(data.title);
  console.log(data.contentType);
  console.log(data.meta.description);
  console.log(data.meta['twitter:site']);
});

output:

http://leap.it
Leap.it
text/html; charset=utf-8
Leap.it - a whole new take on search. What are you looking to discover? Try it now!
@leapit

Install

With npm do:

npm install web-metadata

License

MIT

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago