{"_id":"@alexanderson1993/cooklang-ts","_rev":"2-7d67ee50af99ea41095d8ccedae2e1e8","name":"@alexanderson1993/cooklang-ts","dist-tags":{"latest":"1.2.8-simmerdown.2"},"versions":{"1.2.8":{"name":"@alexanderson1993/cooklang-ts","version":"1.2.8","keywords":["cooklang","parsing","typescript","cooking-recipes","cooking","markup"],"author":{"name":"ThatTSGuy"},"license":"MIT","_id":"@alexanderson1993/cooklang-ts@1.2.8","maintainers":[{"name":"alexanderson1993","email":"alexanderson1993@gmail.com"}],"homepage":"https://github.com/cooklang/cooklang-ts#readme","bugs":{"url":"https://github.com/cooklang/cooklang-ts/issues"},"dist":{"shasum":"92af25b1a39baf908be78e4a4b933cc7c82936df","tarball":"https://registry.npmjs.org/@alexanderson1993/cooklang-ts/-/cooklang-ts-1.2.8.tgz","fileCount":18,"integrity":"sha512-kE9w/P9XPwinMOnLd1PYBcHN76be6F/PGFmfP8/hMDwvIcYe3yt0zU1v/K1KzRvPmYhK8xfJCphWXtrKKhYumg==","signatures":[{"sig":"MEYCIQCKdKyBdCwDHNMYH05vrtCPf6s1pcbTSAe4Jf1YOSbocAIhAPdorlKkTC76gCLA63ph2tXjND76JS+tn6pCqNfUeIJT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26348},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"52bb5872a4c4d8cd656dc30949a8feddbcece6bc","scripts":{"docs":"node tools/docs.js && typedoc --readme README.md --out docs src/index.ts","test":"jest","build":"tsc","watch":"ts-node-dev --respawn --clear --rs src/index.ts","prepare":"npm run build"},"_npmUser":{"name":"alexanderson1993","email":"alexanderson1993@gmail.com"},"repository":{"url":"git+https://github.com/cooklang/cooklang-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"Cooklang-TS is a TypeScript library for parsing and manipulating Cooklang recipes.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.0","yaml":"^1.10.2","ts-jest":"^28.0.2","typedoc":"^0.22.13","typescript":"^4.6.2","@types/jest":"^27.5.0","@types/node":"^17.0.32","ts-node-dev":"^1.1.8"},"_npmOperationalInternal":{"tmp":"tmp/cooklang-ts_1.2.8_1734715132920_0.1136490155464851","host":"s3://npm-registry-packages-npm-production"}},"1.2.8-simmerdown.1":{"name":"@alexanderson1993/cooklang-ts","version":"1.2.8-simmerdown.1","keywords":["cooklang","parsing","typescript","cooking-recipes","cooking","markup"],"author":{"name":"ThatTSGuy"},"license":"MIT","_id":"@alexanderson1993/cooklang-ts@1.2.8-simmerdown.1","maintainers":[{"name":"alexanderson1993","email":"alexanderson1993@gmail.com"}],"homepage":"https://github.com/cooklang/cooklang-ts#readme","bugs":{"url":"https://github.com/cooklang/cooklang-ts/issues"},"dist":{"shasum":"6d0b663a0a8d990aeb94d44c0acdeb5471c15e62","tarball":"https://registry.npmjs.org/@alexanderson1993/cooklang-ts/-/cooklang-ts-1.2.8-simmerdown.1.tgz","fileCount":18,"integrity":"sha512-PZ6OmDHK7ZKcciEhNvM4foCJeCckYgR4VAP4v/0NdT+CQ2TeI8OGtB6EaLBJA7dMDHP6tTbpkF3pXkEGzix3sA==","signatures":[{"sig":"MEUCIQDMgf/dLf8Snjak52fJl7WcghRz68YP2ZGajlLBCIPk/gIgDdZw42ZccMuu0lCjrIEFg47Qtuh44gNwuag79FrVRp8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29464},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"19937af0caa448a6c0c18eb32dd595fc7efb9d59","scripts":{"docs":"node tools/docs.js && typedoc --readme README.md --out docs src/index.ts","test":"jest","build":"tsc","watch":"ts-node-dev --respawn --clear --rs src/index.ts","prepare":"npm run build"},"_npmUser":{"name":"alexanderson1993","email":"alexanderson1993@gmail.com"},"repository":{"url":"git+https://github.com/cooklang/cooklang-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"Cooklang-TS is a TypeScript library for parsing and manipulating Cooklang recipes.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.0","yaml":"^1.10.2","ts-jest":"^28.0.2","typedoc":"^0.22.13","typescript":"^4.6.2","@types/jest":"^27.5.0","@types/node":"^17.0.32","ts-node-dev":"^1.1.8"},"_npmOperationalInternal":{"tmp":"tmp/cooklang-ts_1.2.8-simmerdown.1_1734724001592_0.2686579191078171","host":"s3://npm-registry-packages-npm-production"}},"1.2.8-simmerdown.2":{"name":"@alexanderson1993/cooklang-ts","version":"1.2.8-simmerdown.2","description":"Cooklang-TS is a TypeScript library for parsing and manipulating Cooklang recipes.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prepare":"npm run build","watch":"ts-node-dev --respawn --clear --rs src/index.ts","docs":"node tools/docs.js && typedoc --readme README.md --out docs src/index.ts","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/cooklang/cooklang-ts.git"},"keywords":["cooklang","parsing","typescript","cooking-recipes","cooking","markup"],"author":{"name":"ThatTSGuy"},"license":"MIT","bugs":{"url":"https://github.com/cooklang/cooklang-ts/issues"},"homepage":"https://github.com/cooklang/cooklang-ts#readme","devDependencies":{"@types/jest":"^27.5.0","@types/node":"^17.0.32","jest":"^28.1.0","ts-jest":"^28.0.2","ts-node-dev":"^1.1.8","typedoc":"^0.22.13","typescript":"^4.6.2","yaml":"^1.10.2"},"_id":"@alexanderson1993/cooklang-ts@1.2.8-simmerdown.2","gitHead":"19937af0caa448a6c0c18eb32dd595fc7efb9d59","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/531ubrz5VNSmUnxNiYWCXntmETb9N9R2kcpS7NLpw8wZ9ic4ZllYcQlYaA/b8BjZBKoLk11wXmoVmiHKF/HhQ==","shasum":"609919c469110050cbcc1caaacb247a846c39efe","tarball":"https://registry.npmjs.org/@alexanderson1993/cooklang-ts/-/cooklang-ts-1.2.8-simmerdown.2.tgz","fileCount":18,"unpackedSize":29619,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBRSqwPV/ILd0n+wZs89jFRGuXiVzfzHzZxyHg7U1PjSAiEAkePx2DEZPOQ+cRTf4yHwhm9dEypePevgra9LHWLSn5Y="}]},"_npmUser":{"name":"alexanderson1993","email":"hey@ralexanderson.com"},"directories":{},"maintainers":[{"name":"alexanderson1993","email":"hey@ralexanderson.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cooklang-ts_1.2.8-simmerdown.2_1736543948261_0.5696555472428"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-20T17:18:52.823Z","modified":"2025-01-10T21:19:08.627Z","1.2.8":"2024-12-20T17:18:53.106Z","1.2.8-simmerdown.1":"2024-12-20T19:46:41.772Z","1.2.8-simmerdown.2":"2025-01-10T21:19:08.462Z"},"bugs":{"url":"https://github.com/cooklang/cooklang-ts/issues"},"author":{"name":"ThatTSGuy"},"license":"MIT","homepage":"https://github.com/cooklang/cooklang-ts#readme","keywords":["cooklang","parsing","typescript","cooking-recipes","cooking","markup"],"repository":{"type":"git","url":"git+https://github.com/cooklang/cooklang-ts.git"},"description":"Cooklang-TS is a TypeScript library for parsing and manipulating Cooklang recipes.","maintainers":[{"name":"alexanderson1993","email":"hey@ralexanderson.com"}],"readme":"# Cooklang-TS\n\n![cooklang-ts logo](https://github.com/cooklang/cooklang-ts/blob/main/assets/logo_white_bg.svg?raw=true)\n\n<div align=\"center\">\n    Cooklang-TS is a TypeScript library for parsing and manipulating <a href=\"https://cooklang.org/\">Cooklang</a> recipes.\n    <br><br>\n    <a href=\"https://github.com/cooklang/cooklang-ts/actions/workflows/tests.yml\"><img src=\"https://github.com/cooklang/cooklang-ts/actions/workflows/tests.yml/badge.svg?branch=main\"></a>\n    <a href=\"https://www.npmjs.com/package/@cooklang/cooklang-ts\"><img src=\"https://img.shields.io/npm/v/@cooklang/cooklang-ts\"></a>\n</div>\n\n\n## Usage\n```typescript\nimport { Recipe, Parser, getImageURL } from '@cooklang/cooklang-ts';\n\nconst source = `\n>> source: https://www.dinneratthezoo.com/wprm_print/6796\n>> total time: 6 minutes\n>> servings: 2\n\nPlace the @apple juice{1,5%cups}, @banana{one sliced}, @frozen mixed berries{1,5%cups} and @vanilla greek yogurt{3/4%cup} in a #blender{}; blend until smooth. If the smoothie seems too thick, add a little more liquid (1/4 cup).\n\nTaste and add @honey{} if desired. Pour into two glasses and garnish with fresh berries and mint sprigs if desired.\n`;\n\nconsole.log(new Recipe(source));\n// {\n//     ingredients: [...],\n//     cookwares: [...],\n//     metadata: {...},\n//     steps: [\n//         [...],\n//         [...],\n//     ],\n//     shoppingList: {},\n// }\n\nconsole.log(new Parser().parse(source).metadata);\n// {\n//     source: 'https://www.dinneratthezoo.com/wprm_print/6796',\n//     'total time': '6 minutes',\n//     servings: '2',\n// }\n\nconsole.log(getImageURL('Mixed Berry Smoothie', {\n    step: 1,\n    extension: 'png'\n}));\n// 'Mixed Berry Smoothie.1.png'\n```\n\n## Cooklang Specification\nThe specification can be found [here](https://cooklang.org/docs/spec/).\n\n## GitHub\nThe repository can be found [here](https://github.com/cooklang/cooklang-ts).\n\n## Testing\nTests are as found in https://github.com/cooklang/spec/blob/main/tests/canonical.yaml.\n```\nnpm test\n```\n","readmeFilename":"readme.md"}