Skip to content

AlexDawsonUK/SWHook

Repository files navigation

Semantic Web Hook

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!

Table of contents

Features

  • 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)
  • RDFa (DCMI & FOAF)
  • Geo (HTML / KML / RDF)
  • And lots more...

Files

/
├── swhook.js
├── swhook.min.js   (compressed)

Installation

npm install swhook

In browser:

<script defer src="/path/to/swhook-min.js"></script>

Browser support

  • Chrome / Edge (latest)
  • Firefox (latest)
  • Safari (latest)

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT © Alexander Dawson

About

A Useful Microdata Framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages