npm.io
1.0.2 • Published 2 years ago

sarirotea

Licence
ISC
Version
1.0.2
Deps
22
Size
2 kB
Vulns
0
Weekly
0

Get Food Recipes

  • Takes an ingredient as input for the recipe search.
  • Replace API_URL with the actual URL of the food recipe API you plan to use. You'll also need to obtain an API key and include it in the request.
  • Uses axios.get to make an asynchronous API call.
  • Parses the response data to extract recipe titles and sources.
  • Returns a list of recipe objects containing title and source URL (or an empty list on errors).