@nvif1989/columns

    1.0.7 • Public • Published

    Codes and names of nutrients, and its components.

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

    const columns = require('@nvif1989/columns');
    // columns.corpus: Map {code => {code, name, tags}}
    // columns.load(): true (corpus loaded)
    // columns.sql([table], [options]): sql commands
    // columns.csv(): path to csv file
    // columns(<query>)
    // -> [{code, name, tags}] for matched columns
     
     
    columns.load();
    /* load corpus first */
     
    columns('vitamin c');
    columns('c-vitamin');
    // [
    //   {
    //     code: 'vitc',
    //     name: 'Vitamin C',
    //     tags: 'ascorbic acid total ascorbate water soluble essential'
    //   }
    // ]
     
    columns('what is thiamine?');
    columns('vitamin b1 stands for?');
    // [
    //   {
    //     code: 'thia',
    //     name: 'Thiamine (B1)',
    //     tags: 'thiamin aneurine vitamin b1 b 1 water soluble essential'
    //   }
    // ]

    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.

    Install

    npm i @nvif1989/columns

    DownloadsWeekly Downloads

    13

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    14.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • wolfram77