cooklang-parser
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

cooklang-parser

installation

npm install cooklang-parser

usage

This package provides two exports: Recipe and parse. Both take a recipe string and return the parsed recipe as on object. The result of parse has two keys, steps and metadata. Recipe additionally adds a list of ingredients and a list of cookware:

const recipeString = `
>> name: test-recipe

1. first step
2. second step
`

parse(recipeString) // { steps: [...], metadata: { ... } }
Recipe(recipeString) // { steps: [...], metadata: { ... }, ingredients: [...], cookware: [...] }

Readme

Keywords

none

Package Sidebar

Install

npm i cooklang-parser

Weekly Downloads

1

Version

0.0.3

License

none

Unpacked Size

16.8 kB

Total Files

8

Last publish

Collaborators

  • biowaffeln