No description or website provided.
Pull request Compare This branch is 10 commits behind nlf:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


req is a very simple command line wrapper around Mikeal Roger's excellent request library.


req [method] uri

Method is optional and will default to GET if not specified. URI is required (obviously).

Additional supported flags are..

    add the given header to the object passed to request, ie: -h content-type=text/plain
    add the given option to the object passed to request, ie: -o encoding=binary
    add the given query to the querystring object passed to request, ie: -q search=turtles
    use the given file as the body in the request
    use the data as the body in the request (note that both of these attempt to guess a valid content-type)
    pass an integer to request as a timeout in milliseconds
    verbose. will console.log the arguments object before it sends the request.
    path to write output to