1.0.5 • Published 4 months ago

simplest-mock-server v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Simplest mock server

A very simple mock HTTP server which only does the following:

  1. Receive request sent to any path and method
  2. Print request body, header, url, query parameters, etc
  3. 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
1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

5 months ago

1.0.1

3 years ago

1.0.0

3 years ago