Socket
Socket
Sign inDemoInstall

nutritionix-api

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "nutritionix-api",
"version": "1.0.0",
"version": "1.0.1",
"description": "Wrapper for the Nutritionix API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,4 +14,19 @@ # Nutritionix API

### Initial Method
Allow set your APP ID and API KEY
````js
const nutritionix = require("nutritionix-api");
const YOUR_APP_ID = ''; // Your APP ID
const YOUR_API_KEY = ''; // Your KEY
nutritionix.init(YOUR_APP_ID,YOUR_API_KEY);
````
### Natural Search
Returns the nutrients for all foods in the posted query.
````js

@@ -29,3 +44,6 @@

### Utils Nutrients
Gets the superset of possible values used in full_nutrients array.
````js

@@ -42,3 +60,5 @@ const nutritionix = require("nutritionix-api");

### Item Get by UPC
Get a food by upc
````js

@@ -56,3 +76,5 @@ const nutritionix = require("nutritionix-api");

### Item Get by ID
Get a food by nix_item_id
````js

@@ -59,0 +81,0 @@ const nutritionix = require("nutritionix-api");

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc