@ifct2017/energies

Metabolizeable energy conversion factors.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Mar 10, 2021May 11, 2018Minified + gzip package size for @ifct2017/energies in KB

Readme

Metabolizable energy conversion factors.

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


const energies = require('@ifct2017/energies');
// energies(query)
// → matches [{component, kj, kcal}]


energies('dietary fibre');
energies('Soluble fibre');
// [ { component: 'Fibre', kj: 8, kcal: 2 } ]

energies('what is energy conversion factor of fat?');
energies('conversion factor of fat');
// [ { component: 'Fat', kj: 37, kcal: 9 } ]
// Additional methods:
energies.load() // → corpus
energies.sql([table], [options]) // → sql statements
energies.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.