mocky-cli

1.0.0 • Public • Published

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

/mocky-cli/

    Package Sidebar

    Install

    npm i mocky-cli

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.48 kB

    Total Files

    4

    Last publish

    Collaborators

    • acestojanoski