node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »


This package provides a MontageJS object that can handle jsonp requests.


var Jsonp = require("jsonp").Jsonp;
.then(function(response) {
    // consume response object 
Jsonp.makeRequest("", "jsonp")
.then(function(response) {
    // show kittens 


Json.makeRequest(url, callbackParameter, servicePrefix) -> {Promise} A promise for the object returned by the request.

  • url {string} The url for the jsonp endpoint.
  • [callbackParameter] {string} The query string component name to be used when passing the function name to the endpoint. "callback" by default.
  • [servicePrefix] {string} A prefix to use for the function name, can be useful for debugging.