JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 50
  • Score
    100M100P100Q58772F
  • License MIT

Metabolizeable energy conversion factors in Indian Food Composition Tables 2017.

Package Exports

  • @ifct2017/energies

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ifct2017/energies) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Metabolizable energy conversion factors in Indian Food Composition Tables 2017.

const energies = require('@ifct2017/energies');
// energies.corpus: Map {component => {component, kj, kcal}}
// energies.load(): true (corpus loaded)
// energies.sql([table], [options]): sql commands
// energies.csv(): path to csv file
// energies(<query>)
// -> [{component, kj, kcal}] for matched components


energies.load();
/* load corpus first */

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 } ]

ifct2017

You can ask about composition of 528 key foods in India here: ifct2017.github.io.
Food composition values were measured by National Institute of Nutrition, Hyderabad.
Take a peek at the raw data here: Document, Webpage.