npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nvif1989

v1.0.9

Published

The Nutritive Value of Indian Foods ([NVIF 1989]) provides nutrient composition for 592 key foods.

Downloads

28

Readme

The Nutritive Value of Indian Foods (NVIF 1989) provides nutrient composition for 592 key foods. Food composition values were measured by National Institute of Nutrition, Hyderabad. You can ask about composition of 592 key foods in India here: nvif1989.github.io.

Shown below is a text-query javascript API for search information through these tables. However, you may also add these to a database for more control over the query.

const nvif1989 = require('nvif1989');

async function main() {
await nvif1989.compositions.load();
await nvif1989.codes.load();
nvif1989.columns.load();
nvif1989.groups.load();
/* load corpus first */
 
// NOTE: grup is wrong, curd is wrong
nvif1989.compositions('pine apple');
nvif1989.compositions('ananas comosus');
nvif1989.compositions('sapuri');
nvif1989.compositions('294');
// [
//   {
//     code: '294',
//     name: 'PINE APPLE',
//     scie: 'Ananas comosus',    lang: 'B. Anarash; G., H., Kan., Mar., P. Ananas; Mal. Kayitha chakka; O. Sapuri Anasianas; Tam. Anasi pazham; Tel. Anasa Pandu',
//     grup: 'Cereal grains and products',
//     tags: 'vegetarian eggetarian fishetarian veg',
//     enerc: 46,
//     water: 87.8,
//     ...
//   }
// ]

nvif1989.columns('vitamin c');
nvif1989.columns('c-vitamin');
// [
//   {
//     code: 'vitc',
//     name: 'Vitamin C',
//     tags: 'ascorbic acid total ascorbate water soluble essential'
//   }
// ]

nvif1989.codes('hing');
// [ { name: 'Hing (B.,G.,H.,Mar.,P.)', code: '215' } ]

nvif1989.groups('cereals');
nvif1989.groups('Grains');
nvif1989.groups('505a');
// [
//   {
//     code: 'A',
//     group: 'Cereal grains and products',
//     entries: '1-27;452-465;505a',
//     tags: 'vegetarian eggetarian fishetarian veg'
//   }
// ]
}
main();

reference

| Method | Action |-------------------------|------- | compositions | Detailed nutrient composition of 592 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. | [nutrients] | Detailed description of various nutrients, and its components. | proteinValue | Absorption and bioavailability of different protein sources. | calorieCoefficient | Relative calorie requirement of distinct demographics. | activityClass | Classification of activities based on occupations. | [energies] | Metabolizable energy conversion factors. | [jonesFactors] | Jones factors for conversion of nitrogen to protein. | [carbohydrates] | Conversion of carbohydrate weights to monosaccharide equivalents. | [about] | On the history of malnutrition, current status, and data details. | contents | Contents in the original book.

TODO: methods in italic.

nodef