A simple wrapper themealdb.com API for Deno 🦕
import {
getRandomMeal,
getCategories,
getFilterByCat,
getMainIngerdient,
getListArea,
getListCategories,
getListIngredient
} from "https://deno.land/x/yummy/mod.ts"
// Get data random meal
console.log(await getRandomMeal())
// Get data's of categories
console.log(await getCategories())
// Get data by filter of the specific category
console.log(await getFilterByCat("seafood"))
// Get data recipe
console.log(await getMainIngerdient("chicken_breast"))
// Get data list available area
console.log(await getListArea())
// Get data list available category
console.log(await getListCategories())
// Get data list available ingredient
console.log(await getListIngredient())
How to run it ? 🤔
deno run --allow-net ./example/index.ts
How to test it ? 🤔
deno test --allow-net ./test/test.ts
@Satyawikananda ©2020