2.0.12 ā€¢ Published 2 years ago

@ifct2017/groups v2.0.12

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

Categorization of food by their common names. šŸ“¦ Node.js, šŸ“œ Files.

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

const groups = require('@ifct2017/groups');
// groups(query)
// ā†’ matches [{code, group, entries, tags}]


groups('cereals');
groups('Millet');
// [ { code: 'A',
//     group: 'Cereals and Millets',
//     entries: 24,
//     tags: 'vegetarian eggetarian fishetarian veg' } ]

groups('what is vegetable?');
groups('vegetable group code?');
// [ { code: 'D',
//     group: 'Other Vegetables',
//     entries: 78,
//     tags: 'vegetarian eggetarian fishetarian veg' },
//   { code: 'C',
//     group: 'Green Leafy Vegetables',
//     entries: 34,
//     tags: 'vegetarian eggetarian fishetarian veg' } ]
// Additional methods:
groups.load() // ā†’ corpus
groups.sql([table], [options]) // ā†’ sql statements
groups.csv() // ā†’ path of csv file

npm.io 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.

2.0.12

2 years ago

2.0.11

2 years ago

2.0.7

2 years ago

2.0.9

2 years ago

2.0.10

2 years ago

2.0.8

2 years ago

2.0.5

3 years ago

2.0.4

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago