Skip to content
ifct2017--codes / 2.0.6

ifct2017--codes 2.0.6

Install from the command line:
Learn more about npm packages
$ npm install @ifct2017/ifct2017--codes@2.0.6
Install via package.json:
"@ifct2017/ifct2017--codes": "2.0.6"

About this version

Uniquely identifiable codes for each food.
πŸ“¦ Node.js, πŸ“œ Files.

This is part of package ifct2017.
Online database: ifct2017.github.io.


const codes = require('@ifct2017/codes');
// codes(query)
// β†’ matches [{name, code}]


await codes.load();
/// Load corpus first

codes('mango green');
codes('Raw mango');
// [ { name: 'Mango, green, raw (Common)', code: 'D057' } ]

codes('what is food code of atta?');
codes('atta code');
// [ { name: 'Atta (H., P.)', code: 'A019' },
//   { name: 'Gahama atta (O.)', code: 'A019' },
//   { name: 'Wheat flour, atta (Common)', code: 'A019' } ]
// Additional methods:
codes.load() // β†’ corpus (promise)
codes.sql([table], [options]) // β†’ sql statements (promise)
codes.csv() // β†’ path of csv file



ORG DOI

Data was obtained from the book Indian Food Composition Tables 2017.
Food composition values were measured by National Institute of Nutrition, Hyderabad.
Take a peek at the raw data here: Document, Webpage.

Details


Assets

  • ifct2017--codes-2.0.6.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0