@ifct2017/codes
TypeScript icon, indicating that this package has built-in type declarations

2.0.8 • Public • Published

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.836latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.836
2.0.71
2.0.61
2.0.52
2.0.31
2.0.21
2.0.11
2.0.01
1.0.71
1.0.61
1.0.51
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01
0.3.11
0.3.01
0.2.91
0.2.81
0.2.71
0.2.61
0.2.51
0.2.41
0.2.31
0.2.21
0.2.11
0.2.01
0.1.11
0.1.01
0.0.31
0.0.21
0.0.11

Package Sidebar

Install

npm i @ifct2017/codes

Weekly Downloads

69

Version

2.0.8

License

MIT

Unpacked Size

83.7 kB

Total Files

6

Last publish

Collaborators

  • wolfram77