nutritionix / nutrition-label

Create a FDA-style nutrition label with any nutrition data source (even the Nutritionix API - http://www.nutritionix.com/api)
http://www.nutritionix.com/
MIT License
176 stars 66 forks source link

improving the code of the library in preparation for version 7 changes #62

Closed majin22 closed 7 years ago

majin22 commented 7 years ago

when I assessed the needed changes for version 7, i found that it will probably complicate the code and make it hard to read and edit in the future

this is the attempt to prevent that problem after the version 7 codes are in place as the function was coded before without this kind of major change in plan

the major change in version 7 is to add a feature to show the new version of the label (2018 version) http://www.fda.gov/Food/GuidanceRegulation/GuidanceDocumentsRegulatoryInformation/LabelingNutrition/ucm385663.htm and the current one (legacy version)

majin22 commented 7 years ago

bugs that are fixed while working on this task: