
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.
quick-remap
Advanced tools
A simple mapping library for when you just need to do a quick renaming of certain fields on objects.
A simple mapping library for when you just need to do a quick renaming of certain fields on objects, while leaving everything else as is.
The only export of the library is the function quickMapping which has the following header:
quickMapping = (source: any, keysToRename: any, keysToSkip?: string[]): any
keysToRename: a simple object which has as it's keys the key in the source object you want to remap and the value for the key the new name.
keysToSkip: an optional array for keys you just want to skip.
A basic example
let source = { name: "John", lastName: "Smith", "clientId": 1 };
let final = quickMapping(source, {"name":"firstName"});
console.log(final); // { firstName: "John", lastName: "Smith", "clientId": 1 };
A basic example with deletion
let source = { name: "John", lastName: "Smith", "clientId": 1 };
let final = quickMapping(source, {"name":"firstName"}, ["clientId"]);
console.log(final); // { firstName: "John", lastName: "Smith" };
A basic example with arrays
let source = [{ name: "John", lastName: "Smith", "clientId": 1 }, { name: "George", lastName: "Smith", "clientId": 2 }];
let final = source.map(c => quickMapping(c, {"name":"firstName"}))
The function will do a deep copy of the object, the library has been tested in the context of typescript and node, not plain javascript directly in the browser.
FAQs
A simple mapping library for when you just need to do a quick renaming of certain fields on objects.
We found that quick-remap 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.