Skip to content

acryps/metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@acryps/metadata JSON+LD Library

All JSON+LD metadata declarations sourced directly from schema.org.

Apply metadata to current page, replacing any metadata set before:

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();
	}
}

About

JSON+LD Metadata in TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published