Package Exports
- ifct2017
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) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Kit for Indian Food Composition Tables 2017.
const ifct2017 = require('ifct2017');
async function main() {
await ifct2017.compositions.load();
ifct2017.columns.load();
ifct2017.intakes.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');
// { whorda: -0.01,
// usear: null,
// usrdam: -0.014,
// usrdaf: null,
// euprim: null,
// euprif: null,
// ulus: null,
// uleu: null,
// uljapan: null }
/* negative value indicates amount per kg of body weight */
}
main();
reference
Name | 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.
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.