Jones factors for conversion of nitrogen to protein.


002.0.55 days ago4 years agoMinified + gzip package size for @ifct2017/jonesfactors in KB


Jones factors for conversion of nitrogen to protein.

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

const jonesFactors = require('@ifct2017/jonesfactors');
// jonesFactors(query)
// → matches [{food, factor}]

jonesFactors('Refined wheat');
// [ { food: 'Refined wheat flour (Maida)', factor: '5.70' } ]

jonesFactors('what is jones factor of barley?');
jonesFactors('jones factor of oats');
// [ { food: 'Barley and its flour;Rye and its flour;Oats',
//     factor: '5.83' } ]
// Additional methods:
jonesFactors.load() // → corpus
jonesFactors.sql([table], [options]) // → sql statements
jonesFactors.csv() // → path of csv file

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.