
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
moxy-mapper
Advanced tools
Data mapping made easy
const MoxyMapper = require('moxy-mapper').MoxyMapper
let src = {
age: 21,
bio: 'My name is John and I\'m an alcoholic',
medical_history: {
heart_disease: true,
},
name: 'John Doe',
street: '123 Main St. APT 3',
registered: '2019-05-05',
tobacco_use: true,
}
let dest = {
bio: 'My name is John and I\'m an alcoholic',
demographics: {
age: 21,
tobaccoUse: true,
heartDisease: true,
},
firstName: 'John',
lastName: 'Doe',
address: {
street1: '123 Main St.',
street2: 'APT 3',
},
registered: '2019-05-05',
}
let jsonToConvert = {
age: 25,
bio: 'My name is Mark',
medical_history: {
heart_disease: false,
},
name: 'Mark Hamilton',
street: '911 Mary Road. SUITE 5',
registered: '2019-01-01',
tobacco_use: false,
}
const mapper = new MoxyMapper(src, dest)
const output = mapper.map(jsonToConvert)
console.log(output)
Sample output:
{
bio: 'My name is Mark',
demographics: {
age: 25,
tobaccoUse: false,
heartDisease: false,
},
firstName: 'Mark',
lastName: 'Hamilton',
address: {
street1: '911 Mary Road',
street2: 'SUITE 5',
},
registered: '2019-01-01',
}
This project is still in its infancy. Feel free to report or fix any bugs that you see. Take caution if you plan to use this in a production app.
If you find any of my GitHub projects useful, feel free to donate here!
If you need support on any of the projects listed on my GitHub, feel free to reach out to me on my LinkedIn and we can work something out!
FAQs
Moxy Mapper - Data mapping made easy
The npm package moxy-mapper receives a total of 1 weekly downloads. As such, moxy-mapper popularity was classified as not popular.
We found that moxy-mapper 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.