
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.
get-or-throw
Advanced tools
A convenience function for safely getting values from dynamic objects and arrays
A convenience function for safely accessing values in dynamic objects and
arrays. It gets the value at a specified key or index, and throws an error if
the resulting value is undefined.
got as alias for getOrThrowpnpm add get-or-throw
import { got } from "get-or-throw";
const arr = [1, 2, 3];
got(arr, 1); // 2
const obj = { a: 1, b: 2, c: 3 };
got(obj, "b"); // 2
For full documentation visit get-or-throw.codecompose.dev.
MIT
FAQs
A convenience function for safely getting values from dynamic objects and arrays
The npm package get-or-throw receives a total of 10,959 weekly downloads. As such, get-or-throw popularity was classified as popular.
We found that get-or-throw demonstrated a healthy version release cadence and project activity because the last version was released less than 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.