Repository
Current version released
4 years ago
Food Module
Deno module for food lovers. This module leverages data from https://world.openfoodfacts.org/ and more providers about to come.
Feel free to add recipes etc.
Usage example for your code
import { FoodInfoProvider } from "https://deno.land/x/food@1.1.0/food-info-provider.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/food@1.1.0/test-it.ts
Contributions are welcome
Feel free to create a pull request if you would like to improve things.
Support my Open Source Contributions
If you like my work please consider downloading the brave browser via my promotion link: https://brave.com/fan464.