Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 2.12 KB

README.md

File metadata and controls

55 lines (44 loc) · 2.12 KB

Conversion of carbohydrate weights to monosaccharide equivalents.
📦 Node.js, 📜 Files.

This is part of package ifct2017.
Online database: ifct2017.github.io.


const carbohydrates = require('@ifct2017/carbohydrates');
// carbohydrates(query)
// → matches [{sno, carbohydrate, hydrolysis, monosaccharide}]


carbohydrates('monosaccharide');
carbohydrates('Glucose');
// [ { sno: '1',
//     carbohydrate: 'Monosaccharides e.g. glucose',
//     hydrolysis: 100,
//     monosaccharide: 1 } ]

carbohydrates('what is carbohydrate conversion factor of disaccharides?');
carbohydrates('maltose conversion factor');
// [ { sno: '2',
//     carbohydrate: 'Disaccharides e.g. sucrose, lactose, maltose',
//     hydrolysis: 105,
//     monosaccharide: 1.05 } ]
// Additional methods:
carbohydrates.load() // → corpus
carbohydrates.sql([table], [options]) // → sql statements
carbohydrates.csv() // → path of csv file



ORG DOI

Data was obtained from the book Indian Food Composition Tables 2017.
Food composition values were measured by National Institute of Nutrition, Hyderabad.
Take a peek at the raw data here: Document, Webpage.