0.2.11 • Published 11 years ago

hoax v0.2.11

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

hoax

JSON HTTP client using pax for path currying and request for HTTP.

Used by coax

Getting Started

Install the module with: npm install hoax

var hoax = require('hoax');

hoax(["http://localhost:3001/","very","awesome"], function(err, json){
	console.log("fetched", json)
});

// currying
var server = hoax("http://localhost:3001/"),
	path = server("very", {query : "params"});

// put JSON to "http://localhost:3001/very/awesome?query=params"
path.put("awesome", {some:"data"}, function(err, json){
	console.log("put json", json);
});

License

Copyright (c) 2013 Chris Anderson Licensed under the Apache license.

0.2.11

11 years ago

0.2.9

11 years ago

0.2.7

11 years ago

0.2.6

11 years ago

0.2.5

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago