
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Simple object mapper for creating flat javascript objects.
Maps an object to a flat structure. Map object keys from one key to another with the help of a mapping object. Supports mapping of a nested object to a flat structure.
npm install --save ob-map
yarn add ob-map
import { map } from 'ob-map';
map(
{
a: 1,
b: 2
},
{
y: 'a',
z: 'b'
}
);
// => {y: 1, z: 2}
import { map } from 'ob-map';
const obj = {
a: {
b: {
c: 1
}
},
d: {
e: 2
}
};
const mapping = {
x: 'a.b.c',
y: 'd.e'
};
map(obj, mapping);
// => {x: 1, y: 2}
import { bulkMap } from 'ob-map';
const arr = [
{
a: 1,
b: 2,
c: 3
},
{
a: 3,
b: 4,
c: 5
}
];
const mapping = {
x: 'a',
y: 'b',
z: 'c'
};
bulkMap(arr, mapping);
// => [{ x: 1, y: 2, z: 3 },{ x: 3, y: 4, z: 5 }]
FAQs
Simple object to object mapping.
The npm package ob-map receives a total of 0 weekly downloads. As such, ob-map popularity was classified as not popular.
We found that ob-map 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.