package
JSON requests made easy.
npm install jsonreqGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
JSON requests made easy. No more dealing with low-level HTTP events, chunked requests or responses, buffering, etc. Just get and post to send and receive.
npm install jsonreqvar json = require('jsonreq');
json.get('http://api.example.com/foo.json', function (err, data) {
// ...
});
// TODO not implemented yet
json.post('http://api.example.com/foo.json', data, function (err, data) {
// ...
});npm linknpm test