get-json

Request wrapper returns only error and JSON body

npm install get-json
9 downloads in the last week
54 downloads in the last month

get-json

Request wrapper for fetching JSON by default. Eleminates response parameter.

$ npm install get-json

Usage

getJSON = require('get-json')

getJSON('http://multiplayerchess.com/api', function(error, response){

    response.ok
    // => true

})

npm loves you