@ifct2017/carbohydrates

Conversion of carbohydrate weights to monosaccharide equivalents in Indian Food Composition Tables 2017.

Stats

StarsIssuesVersionUpdatedCreatedSize
@ifct2017/carbohydrates
002.0.46 months ago4 years agoMinified + gzip package size for @ifct2017/carbohydrates in KB

Readme

Conversion of carbohydrate weights to monosaccharide equivalents.

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


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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.