Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement →
Sign In

ifct2017

Package Overview
Dependencies
Maintainers
1
Versions
765
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ifct2017

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

latest
Source
npmnpm
Version
2.0.15
Version published
Maintainers
1
Created
Source

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

MethodAction
compositionsDetailed nutrient composition of 528 key foods in India.
columnsCodes and names of nutrients, and its components.
picturesSingle representative photo of each foods (JPEG, 307x173).
intakesRecommended daily intakes of nutrients.
hierarchyTree-like hierarchy of nutrients, and its components.
representationsRepresentations of columns (as factors and units).
codesUniquely identifiable codes for each food.
groupsCategorization of food by their common names.
descriptionsNames of each food in local languages, including scientific name.
abbreviationsFull forms of abbreviations used in the original book.
languagesFull form of language abbreviations.
methodsAnalytical methods of nutrient and bioactive components.
energiesMetabolizable energy conversion factors.
nutrientsDetailed description of various nutrients, and its components.
jonesFactorsJones factors for conversion of nitrogen to protein.
carbohydratesConversion of carbohydrate weights to monosaccharide equivalents.
regionsCategorization of the States/UTs into six different regions.
samplingUnitsNumber of primary sampling units in each State/UT.
compositingCentresRegional compositing centres and sample size of each region.
frequencyDistributionFrequency distribution of States/UTs for fixing the number of districts to be sampled.
aboutOn the history of malnutrition, current status, and data details.
contentsContents 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

Keywords

ifct

FAQs

Package last updated on 26 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts