@tmlmt/cooklang-parser / Metadata
Interface: Metadata
Represents the metadata of a recipe.
Properties
author?
optionalauthor:string
The author of the recipe.
category?
optionalcategory:string
The category of the recipe.
cook time?
optionalcook time:string
The cooking time of the recipe. Will not be further parsed into any DateTime format nor normalize
course?
optionalcourse:string
The course of the recipe.
cuisine?
optionalcuisine:string
The cuisine of the recipe.
description?
optionaldescription:string
The description of the recipe.
diet?
optionaldiet:string
The diet of the recipe.
difficulty?
optionaldifficulty:string
The difficulty of the recipe.
duration?
optionalduration:string
image?
optionalimage:string
The picture of the recipe. Alias of picture
images?
optionalimages:string[]
The images of the recipe. Alias of pictures
introduction?
optionalintroduction:string
The introduction of the recipe.
locale?
optionallocale:string
The locale of the recipe.
picture?
optionalpicture:string
The picture of the recipe. Alias of image
pictures?
optionalpictures:string[]
The images of the recipe. Alias of images
prep time?
optionalprep time:string
The preparation time of the recipe. Will not be further parsed into any DateTime format nor normalize
serves?
optionalserves:string|number
The number of people the recipe serves. Should be either a number or a string which starts with a number (which will be used for scaling) followed by a comma and then whatever you want.
Interchangeable with servings or yield. If multiple ones are defined, the prevailance order for the number which will used for scaling is servings > yield > serves. See servings for examples.
servings?
optionalservings:string|number
The number of servings the recipe makes. Should be either a number or a string which starts with a number (which will be used for scaling) followed by a comma and then whatever you want.
Interchangeable with yield or serves. If multiple ones are defined, the prevailance order for the number which will used for scaling is servings > yield > serves.
Examples
servings: 4servings: 2, a fewsource?
optionalsource:string
The source of the recipe.
source.author?
optionalsource.author:string
The source author of the recipe.
source.name?
optionalsource.name:string
The source name of the recipe.
source.url?
optionalsource.url:string
The source url of the recipe.
tags?
optionaltags:string[]
The tags of the recipe.
time?
optionaltime:string
time required?
optionaltime required:string
The total time of the recipe. Will not be further parsed into any DateTime format nor normalize
time.cook?
optionaltime.cook:string
Alias of cook time
time.prep?
optionaltime.prep:string
Alias of prep time
title?
optionaltitle:string
The title of the recipe.
yield?
optionalyield:string|number
The yield of the recipe. Should be either a number or a string which starts with a number (which will be used for scaling) followed by a comma and then whatever you want.
Interchangeable with servings or serves. If multiple ones are defined, the prevailance order for the number which will used for scaling is servings > yield > serves. See servings for examples.