Module: main

Main runner function for grocery list project
Source:

Methods

(static) main(mealsFileName) → {Promise.<{Object}>}

Takes a file with a list of meals as an input and returns ingredients with quantities as an Object
Parameters:
Name Type Description
mealsFileName string Filepath to list of meals. Meals are expected to be separated by a new line (\n).
Source:
Returns:
Object where Key: Ingredient, Value: Quantity
Type
Promise.<{Object}>