
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.
multifactorial
Advanced tools
The factorial of a number, written as n!, is defined as n! = n(n − 1)(n − 2)...(2)(1).
Multifactorials generalize factorials as follows:
n! = n(n − 1)(n − 2)...(2)(1)
n!! = n(n − 2)(n − 4)...
n!!! = n(n − 3)(n − 6)...
n!!!! = n(n − 4)(n − 8)...
n!!!!! = n(n − 5)(n − 10)...
In all cases, the terms in the products are positive integers.
If we define the degree of the multifactorial as the difference in successive terms that are multiplied together for a multifactorial (the number of exclamation marks), then the task is twofold: Write a function that given n and the degree, calculates the multifactorial. Use the function to generate and display here a table of the first ten members (1 to 10) of the first five degrees of multifactorial.
For more information, see: https://en.wikipedia.org/wiki/Factorial#Multifactorials
$ npm install --save multifactorial
var multifactorial = require('multifactorial');
multifactorial(10, 1);
//=> 3628800
multifactorial(10, 4);
//=> 120
Required
Type: Number
Optional
Type: Number
Default: 1
MIT © Vinícius do Carmo
FAQs
Calculate multifactorials
We found that multifactorial 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.