
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
Simple nutrition facts wrapper as an NPM module.
npm install nutrition --save
// import for ES6
import * as nutrition from 'nutrition'
const opts = {
weight: 65,
height: 1.75
}
const value = nutrition.bmi(opts)
// OR import for ES5
var nutrition = require('nutrition')
var opts = {
weight: 65,
height: 1.75
}
var value = nutrition.bmi(opts)
bmi(opts)BMI (Body Mass Index) is a measurement of body fat based on height and weight that applies to both men and women. It can be used to indicate if you are overweight, obese, underweight or normal.
opts is an object with properties containing formula values
The following arguments are expected:
bmiClass(bmi)Returns the class from Body Mass Index value. Possible results are:
bmr(opts)BMR (Basal Metabolic Rate) is the amount of energy expended while at rest in a neutrally temperate environment.
opts is an object with properties containing formula values
The following arguments are expected:
dailyCalories(opts)This method also know as the Harris–Benedict equation is a method used to estimate individual's daily kilocalorie requirements based on a basal metabolic rate (BMR).
opts is an object with properties containing formula values
The following arguments are expected:
Please see CONTRIBUTING.
MIT, see LICENSE.
FAQs
Simple nutrition facts wrapper
We found that nutrition 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.