Permalink
Browse files

update docs

  • Loading branch information...
1 parent 7e9120f commit 4df1e073f58c4e5b0eeacef204c7d76b07addd47 @twilson63 committed Sep 27, 2011
Showing with 9 additions and 4 deletions.
  1. +1 −1 index.coffee
  2. +1 −1 index.js
  3. +1 −1 package.json
  4. +6 −1 readme.md
View
2 index.coffee
@@ -1,7 +1,7 @@
request = require 'request'
module.exports =
get: ->
- return console.log 'get [uri] - uri is required ex. http://twitter.com/search.json&q=nodejs' unless process.argv[2]
+ return console.log 'get [uri] - uri is required ex. http://twitter.com/search.json?q=nodejs' unless process.argv[2]
return console.log 'get [uri] - uri is not valid' unless process.argv[2].match /https?\:\/\/(.*)\.(.*)/
request uri: process.argv[2], json: true, (err, resp, body) ->
console.log body
View
2 index.js
@@ -4,7 +4,7 @@
module.exports = {
get: function() {
if (!process.argv[2]) {
- return console.log('get [uri] - uri is required ex. http://twitter.com/search.json&q=nodejs');
+ return console.log('get [uri] - uri is required ex. http://twitter.com/search.json?q=nodejs');
}
if (!process.argv[2].match(/https?\:\/\/(.*)\.(.*)/)) {
return console.log('get [uri] - uri is not valid');
View
2 package.json
@@ -2,7 +2,7 @@
"name": "get-post",
"description": "Simple Wrapper around Request to provide cli get and post",
"tags" : ["http", "simple", "get", "post","cli"],
- "version": "0.0.2",
+ "version": "0.0.3",
"homepage": "http://github.com/twilson63/get-post",
"author": "Tom Wilson",
"private": false,
View
7 readme.md
@@ -2,7 +2,7 @@
Simple NodeJs json http request command-line client. A cli
wrapper around Request by Mikeal Rogers. Everything gets
-or posts via application/json.
+or posts via content-type application/json.
# Installation
@@ -23,3 +23,8 @@ Do a simple json post:
```
post http://echo-json.heroku.com '{"hello":"world"}'
```
+
+# Thanks
+
+Mikeal Rogers for Request
+Ryan Dahl for Nodejs

0 comments on commit 4df1e07

Please sign in to comment.