Skip to content

joshuef/schema-doter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Schema Doter

Get schema.org as a useable JS module.

Automatically fetches latest http://schema.org/docs/full.html jsonld schemas, and saves them as json for simple import as modules into your project.

About

Another schema.org package!?

Yes.

It pulls schema.org schemas so you can use them whenever you need via js modules.

This is actually quite similar to https://www.npmjs.com/package/schema.org, but provides a simple method for import.

Setup:

Install using yarn (needed for postinstall script/retrieval) yarn

Use

When using:

import { Book } from './schema-doter';

console.log( 'This is the book schema', Book )

TODO

  • Publish as npm package?
    • Setup main script / build / etc
  • Add tests
  • setup CI

About

Fetch http://schema.org RDF schemas for javascript module import

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published