Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 535 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 535 Bytes

Microdata

Installation

npm install elixirhub/microdata

How to use

var microdata = require('microdata');
var url = 'http://elixir-europe.org/events/';

// without URL
var result = microdata.parse(html);

// with URL
microdata.parse(url, function (err, result) {

});

microdata.parse(htmlOrUrl[, callback])

  • htmlOrUrl String – An HTML source or an URL.
  • callback Function – Requied when the first parameter is an URL.

License

Microdata is licensed under the MIT license.