npm.io
1.0.0 • Published 6 years agoCLI

mocky-cli

Licence
MIT
Version
1.0.0
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
2

mocky-cli

CircleCI XO code style code style: prettier install size Downloads

Mock your HTTP responses to test your REST API

It is using the www.mocky.io API.

Install

$ npm install -g mocky-cli

Usage

Usage:
  $ mocky

Options:
  --statusCode, The status code for the response (the default is 200)
  --body, The body for the response (the default is empty string)
  --location, The redirect location (it works if the status code is redirection status code)

Examples:
  $ mocky --statusCode 201 --body "{\"message\": \"CREATED\"}"
  $ mocky --statusCode 302 --location https://github.com/acestojanoski

License

MIT

Keywords