A Useful Microdata Framework.
SWHook is a simple, dependency free Microdata JavaScript framework. It turns semantic information embedded within the page into useful functionality for end-users. Once added to a website, this automated library will sniff markup on the fly for compatible microdata and transform it into a useful browser-based format for your visitors. This library adds no bloat, it just enhances what's there on the Semantic Web!
- HTML5 Elements
- MIME Type Helper
- Pseudo Protocols
- Head Links (Detection)
- META Tags (Extensions)
- DublinCore Metadata
- OpenGraph & TwitterCards
- Microformats v1 & v2
- Structured Data (Microdata / RDFa / JSON-LD)
- See Microdata.txt
- RDFa (DCMI & FOAF)
- Geo (HTML / KML / RDF)
- And lots more...
/
├── swhook.js
├── swhook.min.js (compressed)
npm install swhook
In browser:
<script defer src="/path/to/swhook-min.js"></script>
- Chrome / Edge (latest)
- Firefox (latest)
- Safari (latest)
Maintained under the Semantic Versioning guidelines.