@ifct2017/pictures

Single representative photo of each foods (JPEG, 307x173).

Stats

StarsIssuesVersionUpdatedCreatedSize
@ifct2017/pictures
002.0.07 months ago4 years agoMinified + gzip package size for @ifct2017/pictures in KB

Readme

Single representative photo of each foods (JPEG, 307x173).

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


const pictures = require('@ifct2017/pictures');
// pictures(code)
// → path is present, null otherwise


pictures('A001');
// C:\Documents\pictures\A001.jpeg

pictures.unpkg('A001');
// https://unpkg.com/@ifct2017/pictures/assets/A001.jpeg

pictures.jsDelivr('A001');
// https://cdn.jsdelivr.net/npm/@ifct2017/pictures/assets/A001.jpeg
// Additional methods:
pictures.unpkg(code) // → UNPKG URL | null
pictures.jsDelivr(code) // → jsDelivr URL | null


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.