Skip to content

smhg/microdata-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)