Permalink
Browse files

update readme and version

  • Loading branch information...
1 parent d789d7b commit 8e21dba3dac1ceab2215c2c2b85d649e9d9f14af @twilson63 twilson63 committed Sep 27, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −0 .npmignore
  2. +0 −1 index.coffee
  3. +1 −1 package.json
  4. +3 −3 readme.md
View
@@ -1 +1,2 @@
node_modules
+index.coffee
View
@@ -4,7 +4,6 @@ module.exports =
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 JSON.stringify(body)
console.log body
post: ->
return console.log 'post [uri] [json] - required!' unless process.argv[2]
View
@@ -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.1",
+ "version": "0.0.2",
"homepage": "",
"author": "Tom Wilson",
"private": false,
View
@@ -1,4 +1,4 @@
-# get-post
+# get-post json cli
Simple NodeJs json http request command-line client. A cli
wrapper around Request by Mikeal Rogers. Everything gets
@@ -15,11 +15,11 @@ npm install get-post -g
Do a simple get as 'application/json' :
```
-get "http://echo.heroku.com/1c97badde"
+get "http://twitter.com/search.json?q=nodejs"
```
Do a simple json post:
```
-post http://echo.heroku.com/1c97badde {"hello":"world"}
+post http://echo-json.heroku.com '{"hello":"world"}'
```

0 comments on commit 8e21dba

Please sign in to comment.