npm.io
0.0.4 • Published 4 years ago

schema_org_parseur

Licence
GPLv3
Version
0.0.4
Deps
1
Size
436 kB
Vulns
0
Weekly
0

Schema parser

Schema are all around the web, and contain useful information about the content of a webpage.

This parser is the equivalent of the https://validator.schema.org/, while it won't fetch via the url for you. It will give you the same result as the validator.

limitation

For now it only works with JSON-LD in html for now, this is still work in progress

Getting started

npm i schema_org_parseur
import { parseSchema } from "schema_org_parseur"

console.log(parseSchema(html))
// [ {schema1}, {schema2}, ...]

Keywords