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
- Host: GitHub
- URL: https://github.com/acryps/metadata
- Owner: acryps
- Created: 2025-01-13T10:37:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-14T07:37:59.000Z (over 1 year ago)
- Last Synced: 2025-12-26T20:10:47.113Z (7 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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();
}
}
```