npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

jsonquest

0.2.3

@mmalecki

npmHomeRepoSnykSocket
Downloads:10
$ npm install jsonquest
DailyWeeklyMonthlyYearly

jsonquest Build Status

A simple HTTP(S) client for JSON APIs.

Installation

npm install jsonquest

Usage

var jsonquest = require('jsonquest');

jsonquest({
  host: 'localhost',
  port: 9999,
  path: '/hello',
  body: { hello: 'world' },
  method: 'PUT',
  protocol: 'http'
}, function (err, res, body) {
  console.log('/hello responded with ' + res.statusCode);
  console.dir(body);
});