
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
jsonp-utils
Advanced tools
jsonp utils for fetching data using jsonp. Accepts a callback or returns a promise
jsonp utils for loading data with jsonp. It has two APIs, you can give a callback or expect a vow promise in return.
npm install jsonp-utils
<script src="jsonp-utils-browser.js"></script>
After you've initialized jsonp you can do as many requests you want as quickly as you want, jsonp will ensure that the right callback will get the right data and do all the clean up for you!
var Jsonp = require("jsonp-utils");
// create a new jsonp request broker
var jsonp = new Jsonp({
// requires the name of param to set to specify the callback name
callbackName: "jsoncallback",
// defaults to 15000
timeout: 30000,
// the url to hit
url: "http://www.flickr.com/services/rest/"
});
var request = {
method: "flickr.test.echo",
format: "json",
api_key: "a1faa53df9402fc5cc2d9746118f9ddc"
};
// Using the callback API
jsonp.get(request, /* callback */ function (err, data) {
this.innerHTML = JSON.stringify(data);
}, /* scope */ document.querySelector(".example1"));
// Using the promise API (vow promise)
var promise = jsonp.get(request);
promise.then(function onSuccess(data) {
document.querySelector(".example2").innerHTML = JSON.stringify(data);
}, function onError(err) {
// on error
});
MIT
FAQs
jsonp utils for fetching data using jsonp. Accepts a callback or returns a promise
The npm package jsonp-utils receives a total of 0 weekly downloads. As such, jsonp-utils popularity was classified as not popular.
We found that jsonp-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.