{"id":27302356,"url":"https://github.com/engineer2b/ts-cooking-pathogens","last_synced_at":"2026-04-30T14:35:30.743Z","repository":{"id":57380634,"uuid":"325378915","full_name":"Engineer2B/ts-cooking-pathogens","owner":"Engineer2B","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-17T12:11:53.000Z","size":446,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T02:17:56.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ts-cooking-pathogens","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Engineer2B.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-29T20:17:10.000Z","updated_at":"2023-01-15T22:36:40.000Z","dependencies_parsed_at":"2023-02-10T09:25:16.366Z","dependency_job_id":null,"html_url":"https://github.com/Engineer2B/ts-cooking-pathogens","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Engineer2B%2Fts-cooking-pathogens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Engineer2B%2Fts-cooking-pathogens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Engineer2B%2Fts-cooking-pathogens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Engineer2B%2Fts-cooking-pathogens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Engineer2B","download_url":"https://codeload.github.com/Engineer2B/ts-cooking-pathogens/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505917,"owners_count":21115354,"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":"2025-04-12T02:18:00.070Z","updated_at":"2026-04-30T14:35:30.675Z","avatar_url":"https://github.com/Engineer2B.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ts-cooking-pathogens\n\n[![Build Status](https://www.travis-ci.com/Engineer2B/ts-cooking-pathogens.svg?branch=main)](https://www.travis-ci.com/Engineer2B/ts-cooking-pathogens)\n[![npm version](https://badge.fury.io/js/ts-cooking-pathogens.svg)](https://badge.fury.io/js/ts-cooking-pathogens)\n\nThis package contains classes to calculate units of common pathogens present after a procedure according to the D/z model and data from (van Asselt E D \u0026 Zwietering M H, 2006).\nIt was created by following [this guide](https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c).\n\n## Installation\n\nInstall from npm:\n\n```powershell\nnpm install ts-cooking-pathogens --save\n```\n\n## Usage\n\n```ts\nimport { Food } from 'node_modules/ts-cooking-pathogens/build/Model/Food';\nimport { meanInactivations } from 'node_modules/ts-cooking-pathogens/build/Data/InactivationValues';\n// tslint:disable: no-magic-numbers\n\nconst meanFood = Food.New(meanInactivations);\nconst leastReduced = meanFood.CalculateLeastReduced([70,140], [3*60,5/60]);\nconst mostReduced = meanFood.CalculateMostReduced([70,140], [3*60,5/60]);\nconst reductions = meanFood.CalculateReductions([70,140], [3*60,5/60]);\n\nconsole.log(meanInactivations.Campylobacter.CalculateLog10Reductions([70,140], [3*60,5/60]));\nconsole.log(-Math.log10(meanInactivations.BacillusCereus.CalculateReduction(1, 140, 2 / 60)));\nconsole.log(meanInactivations.BacillusCereus.CalculateLog10Reductions([140, 60, 30], [2 / 60, 3 / 60, 40 / 60]));\nconsole.log(Math.log10(10 ** (((meanInactivations.ClostridiumBotulinumNonProteolytic.CalculateD(140)) * 2 / 60))));\n```\n\nMore info on how to consume this package [here](https://github.com/microsoft/TypeScript/issues/8305#issuecomment-254017287). \n\nCheck [github](https://github.com/Engineer2B/ts-cooking-pathogens/tree/master/src) for available classes.\n\n## License\n\nThe MIT License (MIT)\n\n## References\n\nvan Asselt, E. D. and Zwietering, M., 2006. A systematic approach to determine global thermal inactivation parameters for various food pathogens. International Journal of Food Microbiology, 107(1), pp.73-82.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineer2b%2Fts-cooking-pathogens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengineer2b%2Fts-cooking-pathogens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineer2b%2Fts-cooking-pathogens/lists"}