Nicely Pointed Mandibles
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    hoaxpublic

    hoax

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

    Used by coax

    Build Status

    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.

    Keywords

    none

    install

    npm i hoax

    Downloadslast 7 days

    14

    version

    0.2.11

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar