Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smhg/microdata-js
Microdata parser
https://github.com/smhg/microdata-js
Last synced: about 2 months ago
JSON representation
Microdata parser
- Host: GitHub
- URL: https://github.com/smhg/microdata-js
- Owner: smhg
- License: mit
- Created: 2013-02-02T12:58:23.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-19T11:11:59.000Z (over 9 years ago)
- Last Synced: 2024-11-14T13:53:50.163Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 161 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# microdata [![Build Status](https://travis-ci.org/smhg/microdata-js.png?branch=master)](https://travis-ci.org/smhg/microdata-js)
[schema.org](http://schema.org/) microdata parser.
Tests based on tests in microdatajs by Philip Jägenstedt.
## Installation
```
npm install @smhg/microdata
```## Usage
```javascript
import {parse} from 'microdata';let microdata = parse('');
```## 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)