{"id":13823013,"url":"https://github.com/mackenziemcclaskey/recipe-parser","last_synced_at":"2025-05-16T17:32:58.343Z","repository":{"id":19225028,"uuid":"86536797","full_name":"mackenziemcclaskey/recipe-parser","owner":"mackenziemcclaskey","description":"Natural language parser for recipes and lists of ingredients","archived":false,"fork":false,"pushed_at":"2022-11-25T11:49:36.000Z","size":78,"stargazers_count":70,"open_issues_count":10,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-06T00:34:02.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mackenziemcclaskey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-29T04:00:45.000Z","updated_at":"2025-04-09T13:51:53.000Z","dependencies_parsed_at":"2023-01-13T20:14:41.924Z","dependency_job_id":null,"html_url":"https://github.com/mackenziemcclaskey/recipe-parser","commit_stats":null,"previous_names":["mfernandez-rally/recipe-parser","mackenziefernandez/recipe-parser"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackenziemcclaskey%2Frecipe-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackenziemcclaskey%2Frecipe-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackenziemcclaskey%2Frecipe-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackenziemcclaskey%2Frecipe-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mackenziemcclaskey","download_url":"https://codeload.github.com/mackenziemcclaskey/recipe-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576780,"owners_count":22094453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T08:02:29.659Z","updated_at":"2025-05-16T17:32:57.521Z","avatar_url":"https://github.com/mackenziemcclaskey.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"# recipe-ingredient-parser\nNatural language parser for recipes and lists of ingredients. Can parse a string into an object and also combine an array of these ingredient objects.\n\n## To install\n`npm install recipe-ingredient-parser` or `yarn add recipe-ingredient-parser`\n\n## To use\n`import { parse } from 'recipe-ingredient-parser';`\n\nAnd then use on a string, for example:\n`parse('1 teaspoon basil');`\n\nWill return an object:\n```\n{\n  quantity: 1,\n  unit: 'teaspoon',\n  ingredient: 'basil'\n};\n```\n\n### Combine ingredient objects\n```\ncombine([{\n  quantity: 1,\n  unit: 'teaspoon',\n  ingredient: 'basil'\n},\n{\n  quantity: 1,\n  unit: 'teaspoon',\n  ingredient: 'basil'\n}]);\n```\n\nWill return\n```\n[{\n  quantity: 2,\n  unit: 'teaspoon',\n  ingredient: 'basil'\n}]\n```\n\n\n### Unicode Fractions\nWill also correctly parse unicode fractions into the proper amount\n\n### Development\t\nClone the repo and `yarn` to install packages. If `yarn test` comes back good after your code changes, give yourself a pat on the back.\t\n\t\n## Natural Language Parsing\t\nThis project uses Natural, for more information, see https://dzone.com/articles/using-natural-nlp-module\t\n\t\n### Publishing\t\nCheckout https://docs.npmjs.com/getting-started/publishing-npm-packages for more info\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackenziemcclaskey%2Frecipe-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmackenziemcclaskey%2Frecipe-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackenziemcclaskey%2Frecipe-parser/lists"}