UNPKG

2.17 kBMarkdownView Raw
1[Conversion of carbohydrate weights] to monosaccharide equivalents.<br>
2📦 [Node.js](https://www.npmjs.com/package/@ifct2017/carbohydrates),
3📜 [Files](https://unpkg.com/@ifct2017/carbohydrates/).
4
5> This is part of package [ifct2017].<br>
6> Online database: [ifct2017.github.io].
7
8<br>
9
10```javascript
11const carbohydrates = require('@ifct2017/carbohydrates');
12// carbohydrates(query)
13// → matches [{sno, carbohydrate, hydrolysis, monosaccharide}]
14
15
16carbohydrates('monosaccharide');
17carbohydrates('Glucose');
18// [ { sno: '1',
19// carbohydrate: 'Monosaccharides e.g. glucose',
20// hydrolysis: 100,
21// monosaccharide: 1 } ]
22
23carbohydrates('what is carbohydrate conversion factor of disaccharides?');
24carbohydrates('maltose conversion factor');
25// [ { sno: '2',
26// carbohydrate: 'Disaccharides e.g. sucrose, lactose, maltose',
27// hydrolysis: 105,
28// monosaccharide: 1.05 } ]
29```
30
31```javascript
32// Additional methods:
33carbohydrates.load() // → corpus
34carbohydrates.sql([table], [options]) // → sql statements
35carbohydrates.csv() // → path of csv file
36```
37
38<br>
39<br>
40
41[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
42[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
43[![DOI](https://zenodo.org/badge/133046900.svg)](https://zenodo.org/badge/latestdoi/133046900)
44
45> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
46> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
47> Take a peek at the raw data here: [Document], [Webpage].
48
49[ifct2017]: https://www.npmjs.com/package/ifct2017
50[Indian Food Composition Tables 2017]: http://ifct2017.com/
51[Conversion of carbohydrate weights]: https://github.com/ifct2017/carbohydrates/blob/master/index.csv
52[ifct2017.github.io]: https://ifct2017.github.io
53[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
54[Document]: https://docs.google.com/spreadsheets/d/1YoEVoQFR0co_bTHL3Xok1dQfuqxXZa7yQrlUKbYVve4/edit?usp=sharing
55[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vQ4Ogyx4J5JWX3HQnHhoGt9HsmqNIZ5MFvDvHa2gkYSZg6vxtWeqPrzkyvh1_bmaXDgrsElNgAu1YKk/pubhtml