simplest-mock-server
v1.0.5
Published
Mock HTTP server which only prints request content and return a fixed response to any requests.
Downloads
14
Readme
Simplest mock server
A very simple mock HTTP server which only does the following:
- Receive request sent to any path and method
- Print request body, header, url, query parameters, etc
- Respond with a fixed status code
You can use this server when you just want to check what request your client sents.
Install
Prerequisites: You must install Node.js and npm before installation.
You can install this project from npm.
npm install -g simplest-mock-server
Usage
You can run a mock server with port number 3000 and a fixed response code 200
by the following command:
simplest-mock-server --port 3000 --status 200
To see other options, use -h
option.
simplest-mock-server -h
Develop
# publish to npm
# increment version in package.json manually first
npm publish