Skip to content

Commit

Permalink
remove meals from food
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBresson committed Apr 16, 2021
1 parent c89435e commit 9883b66
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carbon-footprint",
"version": "1.5.2",
"version": "1.5.3",
"description": "Calculate your carbon footprint. Food, transport, purchases, fashion, electricity and digital activities like streaming.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
6 changes: 0 additions & 6 deletions src/food/food.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,4 @@ export enum FoodType {
milk = 'milk',
fruit = 'fruit',
lentils = 'lentils',
highMeatMeal = 'highMeatMeal',
mediumMeatMeal = 'mediumMeatMeal',
lowMeatMeal = 'lowMeatMeal',
pescetarianMeal = 'pescetarianMeal',
vegetarianMeal = 'vegetarianMeal',
veganMeal = 'veganMeal',
}
17 changes: 0 additions & 17 deletions src/food/food.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,7 @@ const lentils = 0.9;
const coffee = 3.14;
const chocolate = 4.87;

/* https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4372775/ */
/* Mean greenhouse gas emissions per 2,000 kcal */
/* https://globalnews.ca/news/3615212/this-is-what-your-breakfast-lunch-and-dinner-calories-actually-look-like/ */
/* Human get around 600 calories per meal */
const highMeatMeal = (7.19 * 6000) / 2000;
const mediumMeatMeal = (5.63 * 6000) / 2000;
const lowMeatMeal = (4.67 * 6000) / 2000;
const pescetarianMeal = (3.91 * 6000) / 2000;
const vegetarianMeal = (3.81 * 6000) / 2000;
const veganMeal = (2.89 * 6000) / 2000;

export default {
highMeatMeal,
mediumMeatMeal,
lowMeatMeal,
pescetarianMeal,
vegetarianMeal,
veganMeal,
coffee,
chocolate,
redMeat,
Expand Down

0 comments on commit 9883b66

Please sign in to comment.