npm.io
0.4.1 • Published 9 years ago

jsonful

Licence
ISC
Version
0.4.1
Deps
6
Vulns
0
Weekly
0

JSONful Javascript client

This is the JSONful Javascript client. It's designed for both, the server and NodeJS.

NodeJS

npm install --save jsonful
var JSONful = require('jsonful').JSONful;

var c = new JSONful("http://localhost:9999/demo.php");
c.exec("is_prime", {q: 1}, function(err, is) {
    console.error("is prime", is);
});

c.exec("is_prime", {q: 2}, function(err, is) {
    console.error("is prime", is);
});

c.exec("is_prime", {q: 12}, function(err, is) {
    console.error("is prime", is);
});

Browser

bower install jsonful