JackHQ

1 note

get-post - Simple JSON CLI

get-post is a little nodejs project that provides two command line applications:

get and # post

This applications allow you to get json from a server or post json to a server. It is that simple.

get http://twitter.com/search.json?q=nodejs

post http://echo-json.heroku.com '{"hello":"world"}'

Pretty simple! YUUP!

Why

I got tired of writing curl -XPOST -d ‘…’ url etc…

When I just wanted to do a quick post push some json, the same with get, it is much faster for me to hit a command line prompt and type

post [url] [json]

Most of the time, I already have a json packet ready to go.

Install

First you must have node and npm installed and this should work for nix and macosx, verified macosx.

npm install get-post -g

Check it Out

Run

get http://twitter.com/
  1. vab3 reblogged this from jackhq
  2. jackhq posted this