This package has been deprecated

Author message:

For now, this project is deprecated. I no longer use or work on it, and doubt others are using it. If by any chance you were using this, and would like to see more of it in some form, let me know: justnvdm@gmail.com

recq

0.3.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i recq

Weekly Downloads

1

Version

0.3.2

License

MIT

Last publish

Collaborators

  • justinvdm