Package Exports
- @ifct2017/contents
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/contents) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Contents in the original book.
This is part of package ifct2017.
Source: Indian Food Composition Tables 2017.
const contents = require('@ifct2017/contents');
// contents.corpus: Map {sno => {sno, title, pagenos}}
// contents.load(): true (corpus loaded)
// contents.sql([table], [options]): sql commands
// contents.csv(): path to csv file
// contents(<query>)
// -> [{sno, title, pagenos}] for matched contents
contents.load();
/* load corpus first */
contents('table 2');
contents('Water soluble vitamins');
// [ { sno: '6.2.',
// title: 'Table 2: Water Soluble Vitamins',
// pagenos: '31' } ]
contents('what is page number of table 3?');
contents('fat soluble vitamin page number');
// [ { sno: '6.3.',
// title: 'Table 3: Fat Soluble Vitamins',
// pagenos: '61' } ]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.
