Giter Site home page Giter Site logo

The Indian Food Composition tables (IFCT 2017) provides nutritional values for 528 key foods.
📦 Node.js, 📜 Files.

Food composition values were measured by National Institute of Nutrition, Hyderabad. Shown below is a text-query JavaScript API for search information through these tables. You may also add these to a database for more control over the query.

Online database: ifct2017.github.io.


const ifct2017 = require('ifct2017');


async function main() {
await ifct2017.compositions.load();
/// Load corpus first


ifct2017.compositions('pineapple');
ifct2017.compositions('ananas comosus');
// [ { code: 'E053',
//     name: 'Pineapple',
//     scie: 'Ananas comosus',
//     lang: 'A. Ahnaros; B. Anarasa; G. Anenas; H. Ananas; Kan. Ananas; Kash. Punchitipul; Kh. Soh trun; Kon. Anas; Mal. Kayirha chakka; M. Kihom Ananas; O. Sapuri; P. Ananas; Tam. Annasi pazham; Tel. Anasa pandu; U. Ananas.',
//     ... } ]

ifct2017.columns('vitamin c');
ifct2017.columns('c-vitamin');
// [ { code: 'vitc',
//     name: 'Total Ascorbic acid',
//     tags: 'ascorbate water soluble vitamin c vitamin c essential' } ]

ifct2017.pictures.unpkg('A001');
// https://unpkg.com/@ifct2017/pictures/assets/A001.jpeg

ifct2017.intakes('his');
ifct2017.intakes('Histidine');
// [ { code: 'his',
//     whorda: -0.01,
//     usear: NaN,
//     usrdam: -0.014,
//     usrdaf: NaN,
//     euprim: NaN,
//     euprif: NaN,
//     ulus: NaN,
//     uleu: NaN,
//     uljapan: NaN } ]
/// Negative value indicates amount per kg of body weight.
}
main();


Reference

Method Action
compositions Detailed nutrient composition of 528 key foods in India.
columns Codes and names of nutrients, and its components.
pictures Single representative photo of each foods (JPEG, 307x173).
intakes Recommended daily intakes of nutrients.
hierarchy Tree-like hierarchy of nutrients, and its components.
representations Representations of columns (as factors and units).
codes Uniquely identifiable codes for each food.
groups Categorization of food by their common names.
descriptions Names of each food in local languages, including scientific name.
abbreviations Full forms of abbreviations used in the original book.
languages Full form of language abbreviations.
methods Analytical methods of nutrient and bioactive components.
energies Metabolizable energy conversion factors.
nutrients Detailed description of various nutrients, and its components.
jonesFactors Jones factors for conversion of nitrogen to protein.
carbohydrates Conversion of carbohydrate weights to monosaccharide equivalents.
regions Categorization of the States/UTs into six different regions.
samplingUnits Number of primary sampling units in each State/UT.
compositingCentres Regional compositing centres and sample size of each region.
frequencyDistribution Frequency distribution of States/UTs for fixing the number of districts to be sampled.
about On the history of malnutrition, current status, and data details.
contents Contents in the original book.

NOTE: .pictures(code) -> null as it is not included locally.
Use .pictures.unpkg(code), or .pictures.jsDelivr(code) instead.

A corpus consisting of columns, hierarchy, intakes, methods, nutrients,
representations is available for use with UI: unpkg, jsDelivr.




ORG DOI

ifct2017's Projects

about icon about

On the history of malnutrition, current status, and data details.

carbohydrates icon carbohydrates

Conversion of carbohydrate weights to monosaccharide equivalents.

codes icon codes

Uniquely identifiable codes for each food.

columns icon columns

Codes and names of nutrients, and its components.

compositions icon compositions

Detailed nutrient composition of 528 key foods in India.

descriptions icon descriptions

Names of each food in local languages, including scientific name.

energies icon energies

Metabolizeable energy conversion factors.

groups icon groups

Categorization of food by their common names.

hierarchy icon hierarchy

Tree-like hierarchy of nutrients, and its components.

ifct2017 icon ifct2017

The Indian Food Composition tables (IFCT 2017) provides nutritional values for 528 key foods.

intakes icon intakes

Recommended daily intakes of nutrients.

methods icon methods

Analytical methods of nutrient and bioactive components.

nutrients icon nutrients

Detailed description of various nutrients, and its components.

pictures icon pictures

Single representative photo of each foods (JPEG, 307x173).

regions icon regions

Categorization of the States/UTs into six different regions.

samplingunits icon samplingunits

Number of primary sampling units (districts) in each State/UT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.