1.0.10 • Published 7 years ago

jcmock v1.0.10

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

jcmock

Tiny command line app to mock endpoints and returned data on demand.

Installation

  1. Install NodeJS 7.8.0 or greater. To do that, go to https://nodejs.org/en/, click on the big gren button and follow the instructions.
  2. On a command line console, execute: npm install -g jcmock

Usage

On a Command Line, execute this:

set JCMOCK_PORT=4333 && set JCMOCK_URL=/somepath && set JCMOCK_RESPONSE_PATH=/dev/om/response.json && jcmock

JCMOCK_PORT: Port where mocked endpoint will be listening. IE: 4333 (defaults to 8080)

JCMOCK_URL: Path to mock. IE: /person

JCMOCK_RESPONSE_PATH: Path to response that will be returned when endpoint is hit. IE: {"key":"value"}

1.0.10

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago