
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
fatsecret-api
Advanced tools
This package is an unofficial fatsecret.com API wrapper for Node.js. The FatSecret API, in addition to many other features, allows you to gather nutritional information about foods.
# install locally
npm install fatsecret-api --save
Initialize a new FatSecretClient
instance with your credentials.
import { FatSecretClient } from "fatsecret-api";
const fatSecretClient = new FatSecretClient({
clientId: "YOUR_CLIENT_ID",
clientSecret: "YOUR_CLIENT_SECRET",
scope: "SEE_FATSECRET_DOCS",
});
Examples of basic methods on the FatSecretClient
instance. To see documentation on parameters and responses please visit the official docs here.
// food.get.v2: Returns detailed nutritional information for the specified food.
await fatSecretClient.getFood({ food_id: "4278773" });
// foods.search: Conducts a search of the food database using the search expression specified.
await fatSecretClient.getFoodSearch({ search_expression: "Cereal" });
// recipe.get: Returns detailed information for the specified recipe.
await fatSecretClient.getRecipe({ recipe_id: "31341" });
// recipes.search: Conducts a search of the recipe database using the search expression specified.
await fatSecretClient.getRecipeSearch({ search_expression: "Brownies" });
// ... to see more methods view the official api docs
📌 OAUTH1 is currently not supported.
FAQs
An unofficial API wrapper for FatSecret made for node.js
The npm package fatsecret-api receives a total of 1 weekly downloads. As such, fatsecret-api popularity was classified as not popular.
We found that fatsecret-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.