0.4.1 • Published 7 years ago
jsonful v0.4.1
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