
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.
@confluentinc/mox
Advanced tools
A node.js developer tool written on top of express.js. Mox is a cross between a mock and a proxy server.
See here for the NPM package
Mox's purpose is to bridge the gap between mock server usage and live backend usage. Frontend development processes typically fall into one of two camps:
Mox is a tool that helps you use both at the same time. It also provides a few other APIs that make the second camp a lot easier.
Some key features:
Install this package through npm or yarn.
npm install @confluentinc/mox
Here's a quick example of what it takes to configure the server, perform a simple mock, and get it running.
import { MoxServer } from '@confluentinc/mox';
const server = new MoxServer({ targetUrl: 'https://dev.server', listenPort: 3005 });
const router = server.getRouter();
router.get('/api/route-to-mock').mock({ foo: 'bar' });
server.start();
Mox supports most common HTTP methods, including HEAD
, OPTIONS
, and PATCH
. It also supports the all
matcher from express.js
which matches all methods.
In the above example, router.get
matches the same way app.get
would in express
.
More detailed API reference
FAQs
hybrid proxy and mock server
The npm package @confluentinc/mox receives a total of 7 weekly downloads. As such, @confluentinc/mox popularity was classified as not popular.
We found that @confluentinc/mox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.