
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
restful-mock-server
Advanced tools
A mock server returning random JSON from schema.
First make sure you have installed the latest version of node.js (You may need to restart your computer after this step).
From NPM for use as a command line app:
$ npm install restful-mock-server -g
From NPM for programmatic use:
$ npm install restful-mock-server
$ mock [options] [--rules path-to-rules.js]
The available options are:
-r, --rules file .......... Specified an rule file. `mock --help rules` for more information.
-p, --port port ........... Specify the port for proxy server. Default: 9528.
-h, --host host ........... Specify the hostname for proxy server. Default: '127.0.0.1'.
-w, --watch ............... When true the rules will auto update when the rule files changed.
-d, --debug ............... Show debugging information whilst running. Default: true.
-v, --verbose ............. Show verbose logging whilst running. Default: false.
-s, --silent .............. Disable any logs. Default: false.
--sensitive ............... When true the route will be case sensitive. Default: false.
--strict .................. When false the trailing slash is optional. Default: false.
--end ..................... When false the path will match at the beginning. Default: true.
-V, --version ............. Print the current version.
-h, --help ................ You're looking at it.
-h, --help command ........ Show details for the specified command.
--no-color ................ Disable colors in the console.
Assuming installation via NPM, you can load this module in your application like this:
var mockServer = require("restful-mock-server");
mockServer(options);
FAQs
A mock server returning random JSON from schema.
We found that restful-mock-server 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.