@smhg/microdata
v0.2.0
Published
Schema.org microdata parser
Downloads
6
Readme
microdata
schema.org microdata parser.
Tests based on tests in microdatajs by Philip Jägenstedt.
Installation
npm install @smhg/microdata
Usage
import {parse} from 'microdata';
let microdata = parse('<html><!-- ... --></html>');
TODO
- cli interface
- parse more schema.org elements (e.g. time values)
- give meaning to itemprop values (Date, interval, Number)
- optionally map itemtype values to something useful (other than url)