Skip to content

picsoung/node-nutritionix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nutritionix package for Node.js

Build Status

This is a simple wrapper for the Nutritionix API.

Nutritionix is a database of nutrition facts of every food item.

Installing

npm install nutritionix

Developer Portal

To use this package you need to get API keys form Nutritionix API portal.

The documentation of the API could be found here

Usage

var Nutritionix = require('nutritionix');
var nutri = new Nutritionix('YOUR_API_KEY','YOUR_APP_ID');

//Search for a brand named coca-cola
nutri.searchBrand({query:"coca-cola"},function(result){
	console.log(result);
});

//Search nutrition fact of an item with barcode = 52200004265
// here it corresponds to Bay cereals for Beet nuts brand
nutri.getItemByUPC("52200004265",function(result){
	console.log(result);
});

Bitdeli Badge

About

Unofficial node wrapper for Nutritionix API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •