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

README.md

req

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

Usage:

req [method] uri

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

Additional supported flags are..

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