Skip to content

MaxHeilmann2004/meals-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MealsAPI

a simple API to get meals from Kochwerk

Usage

import MealsAPI, { MealLocation } from "meals-api";

const monday = new Date();
monday.setDate(monday.getDate() - monday.getDay() + 1);
const friday = new Date();
friday.setDate(friday.getDate() + (7 - friday.getDay()));

// Get meals for location Elbe from monday to friday (inclusive)
const meals = await MealsAPI.getMeals(monday, friday, MealLocation.Elbe);

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published