Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nvif1989/contents

nvif198915MIT1.0.0

Contents in the original book.

nvif, 1989, contents, nutritive, value, indian, food, nutrients, dietary, compositions, proximates, vitamins, minerals, amino, fatty, b12, oxalic, phytin, phophorous, fibre

readme

Contents in the original book.

This is part of package nvif1989.
Source: Nutritive Value of Indian Foods 1989.

const contents = require('@nvif1989/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('minerals');
contents('trace elements');
// [ { sno: 'T3.',
//     title: 'Mineral and Trace Elements : Common Foods',
//     pagenos: '68-73' },
//   { sno: 'T6.',
//     title: 'Mineral and Trace Elements : Less Familiar Foods',
//     pagenos: '80' } ]

contents('what is page number of minerals in common foods?');
contents('common foods trace elements page number');
// [ { sno: 'T3.',
//     title: 'Mineral and Trace Elements : Common Foods',
//     pagenos: '68-73' } ]

nvif1989

You can ask about composition of 592 key foods in India here: nvif1989.github.io.
Food composition values were measured by National Institute of Nutrition, Hyderabad.