An open API service indexing awesome lists of open source software.

https://github.com/acryps/metadata

JSON+LD Metadata in TypeScript
https://github.com/acryps/metadata

Last synced: 3 months ago
JSON representation

JSON+LD Metadata in TypeScript

Awesome Lists containing this project

README

          

# @acryps/metadata JSON+LD Library
All JSON+LD metadata declarations sourced directly from [schema.org](https://schema.org/).

Apply metadata to current page, replacing any metadata set before:
```ts
class BookComponent {
book: Book;

async onload() {
this.book = bookService.find(this.parameters.id);

new MetaProduct({
name: book.title,
offers: new MetaOffer({
priceCurrency: 'CHF',
price: book.price
})
}).apply();
}
}
```