Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/michael-spengler/food
- Owner: michael-spengler
- Created: 2020-06-28T14:35:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-26T19:21:28.000Z (about 4 years ago)
- Last Synced: 2024-09-16T15:43:03.759Z (about 2 months ago)
- Topics: food, health
- Language: TypeScript
- Homepage:
- Size: 333 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)