Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@ng-apimock/docker
Advanced tools
You can start the docker container manually
$ docker run --name my-mock-server -d ngapimock/standalone:latest -p 3000:3000 -v ./mocks:/opt/ngapimock/mocks -v ./extension.js:/opt/ngapimock/extension.js
or using docker-compose.yaml
version: '3.3'
services:
ngapimock-standalone:
image: ngapimock/standalone:latest
restart: always
ports:
- '3000:3000'
expose:
- '3000'
volumes:
- ./mocks:/opt/ngapimock/mocks
- ./extension.js:/opt/ngapimock/extension.js
3000
The mocks are read from your volume mount to /opt/ngapimock/mocks
The extension.js file is read from your volume mount to /opt/ngapimock/extension.js
This is an optional feature that can be used for instance for proxing your requests.
module.exports = {
extend: extend
}
function extend(app) {
console.log("extending the server");
const { createProxyMiddleware } = require('http-proxy-middleware');
app.use('/some/path', createProxyMiddleware({ target: 'https://some.api',changeOrigin: true,timeout: 5000}));
}
Documentation about ng-apimock can be found at https://github.com/ng-apimock/core
The dev-interface can be accessed under:
http://localhost:3000/dev-interface
FAQs
Standalone setup for @ng-apimock/core
We found that @ng-apimock/docker demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.