Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michael-spengler/food

🦕 Deno module for food lovers 🍓🍍🍌. Feel free to enhance & contribute.
https://github.com/michael-spengler/food

food health

Last synced: 26 days ago
JSON representation

🦕 Deno module for food lovers 🍓🍍🍌. Feel free to enhance & contribute.

Awesome Lists containing this project

README

        

This module leverages data from https://world.openfoodfacts.org/ and more providers about to come.

## Usage example for your code

```

import { FoodInfoProvider } from "https://deno.land/x/[email protected]/infoprovider.ts"

const productID = '737628064502'
const foodInfo = await FoodInfoProvider.getProductInfo(productID)

console.log(`I found the following info for product ${productID}: \n${JSON.stringify(foodInfo)}\n`)

```

## Test it via command line
```

deno run --allow-net https://deno.land/x/[email protected]/test-it.ts


```

## Contributions are welcome
Feel free to create a pull request if you would like to improve things like adding recipes etc.

## Support my Open Source Contributions

If you like my work please consider downloading the brave browser via my promotion link: [https://brave.com/fan464](https://brave.com/fan464).

![![](https://brave.com/)](https://brave.com/wp-content/uploads/2019/01/logotype-full-color.svg)