0.3.2 • Published 10 years ago

recq v0.3.2

Weekly downloads
1
License
MIT
Repository
-
Last release
10 years ago

recq

Record requests to a json file. Useful for recording api requests (possibly for use as fixtures).

$ recq -k foo -d '{"bar":"baz"}' http://foo.com 
{
  "foo": {
    "request": {
      "method": "GET",
      "url": "http://foo.com",
      "data": {
        "bar": "baz"
      }
    },
    "response": {
      "code": 200,
      "data": {
        "lerp": "larp"
      }
    }
  }
}

Usage

$ recq --help

  Usage: recq.coffee [options] <url>

  Options:

    -h, --help                        output usage information
    -V, --version                     output the version number
    -m, --method <method>             The http request method to use
    -f, --file <file>                 The storage file to use
    -k, --key <key>                   The key to use for the datum in the file if the file is a json object
    -d, --data <data>                 Request body data
    -a, --auth <username>:<password>  Basic auth
    -t, --type <type>                 The type of the request. May be any value allowed by superagent.
0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago