Wondering what’s next for npm?Check out our public roadmap! »

    @ifct2017/carbohydrates
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.4 • Public • Published

    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.

    Install

    npm i @ifct2017/carbohydrates

    DownloadsWeekly Downloads

    7

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    8.45 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar