ifct2017--columns
/
2.0.13
ifct2017--columns 2.0.13
Install from the command line:
Learn more about npm packages
$ npm install @ifct2017/ifct2017--columns@2.0.13
Install via package.json:
"@ifct2017/ifct2017--columns": "2.0.13"
About this version
Codes and names of nutrients, and its components.
π¦ Node.js,
π Files.
This is part of package ifct2017.
Online database: ifct2017.github.io.
const columns = require('@ifct2017/columns');
// columns(query)
// β matches [{code, name, tags}]
columns('vitamin c');
columns('c-vitamin');
// [ { code: 'vitc',
// name: 'Ascorbic acids (C)',
// tags: 'total ascorbate water soluble vitamin c vitamin c essential' } ]
columns('what is butyric acid?');
columns('c4:0 stands for?');
// [ { code: 'f4d0',
// name: 'Butyric acid (C4:0)',
// tags: 'c40 c 40 4 0 bta butanoic propanecarboxylic carboxylic saturated fatty fat triglyceride lipid colorless liquid unpleasant vomit body odor' } ]
// Additional methods:
columns.load() // β corpus
columns.sql([table], [options]) // β sql statements
columns.csv() // β path of csv file
Data was obtained from the book Indian Food Composition Tables 2017.
Food composition values were measured by National Institute of Nutrition, Hyderabad.