@ifct2017/contents
Version:
Contents in the original book.
51 lines (39 loc) ⢠1.61 kB
Markdown
[Contents] in the original book.<br>
š¦ [Node.js](https://www.npmjs.com/package/@ifct2017/contents),
š [Files](https://unpkg.com/@ifct2017/contents/).
> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].
<br>
```javascript
const contents = require('@ifct2017/contents');
// contents(query)
// ā matches [{sno, title, pagenos}]
contents('table 2');
contents('Water soluble vitamins');
// [ { sno: '6.2.',
// title: 'Table 2: Water Soluble Vitamins',
// pagenos: '31' } ]
contents('what is page number of table 3?');
contents('fat soluble vitamin page number');
// [ { sno: '6.3.',
// title: 'Table 3: Fat Soluble Vitamins',
// pagenos: '61' } ]
```
```javascript
// Additional methods:
contents.load() // ā corpus
contents.sql([table], [options]) // ā sql statements
contents.csv() // ā path of csv file
```
<br>
<br>
[](http://ifct2017.com/)<br>
[](https://ifct2017.github.io)
[](https://zenodo.org/badge/latestdoi/133055983)
> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].
[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[Contents]: https://github.com/ifct2017/contents/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/