{"id":35105934,"url":"https://github.com/brianbolnick/ingredient-math","last_synced_at":"2026-05-22T19:01:44.257Z","repository":{"id":41732947,"uuid":"233950490","full_name":"brianbolnick/ingredient-math","owner":"brianbolnick","description":"Library for converting ingredients based on serving size changes","archived":false,"fork":false,"pushed_at":"2022-12-10T14:53:48.000Z","size":1251,"stargazers_count":1,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-29T12:57:16.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/brianbolnick.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":"2020-01-14T22:43:56.000Z","updated_at":"2020-01-17T03:20:28.000Z","dependencies_parsed_at":"2023-01-26T06:01:37.980Z","dependency_job_id":null,"html_url":"https://github.com/brianbolnick/ingredient-math","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brianbolnick/ingredient-math","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianbolnick%2Fingredient-math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianbolnick%2Fingredient-math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianbolnick%2Fingredient-math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianbolnick%2Fingredient-math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianbolnick","download_url":"https://codeload.github.com/brianbolnick/ingredient-math/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianbolnick%2Fingredient-math/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33362169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-12-27T18:11:07.707Z","updated_at":"2026-05-22T19:01:44.252Z","avatar_url":"https://github.com/brianbolnick.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ingredient Math\n\nThis library is for converting recipe ingredients based on a serving size factor.\n\n* NOTE: This module is still in development\n\n## Installation\n```js\nyarn add ingredient-math\n```\n\n### Example\n```js\nimport { convertIngredient } from 'ingredient-math';\n\nconst ingredient = \"1 teaspoon sugar\"\nconst servingsFactor(2)\n\n\u003e convertIngredient(ingredient, servingsFactor)\n{\n\tquantity: \"2\",\n\tunit: \"teaspoons\"\n\tingredient: \"sugar\"\n}\n```\n\nIt will also automatically calculate and convert units: \n```js\nimport { convertIngredient } from 'ingredient-math';\n\nconst ingredient = \"1 teaspoon sugar\"\nconst servingsFactor(3)\n\n\u003e convertIngredient(ingredient, servingsFactor)\n\n{\n\tquantity: \"3\",\n\tunit: \"tablespoons\"\n\tingredient: \"sugar\"\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianbolnick%2Fingredient-math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianbolnick%2Fingredient-math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianbolnick%2Fingredient-math/lists"}