smhg / microdata-js

Microdata parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

microdata Build Status

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)

About

Microdata parser

License:MIT License


Languages

Language:JavaScript 67.8%Language:HTML 32.2%