package
A sane JSONP implementation.
npm install jsonpGitHub-flavored package documentation.
Across all versions, last 30 days.
3,628,836 in 30 days
Runtime metadata.
A simple JSONP implementation.
Install for node.js or browserify using npm:
$ npm install jsonpInstall for component(1) using component:
$ component install LearnBoost/jsonpInstall for browser using bower:
$ bower install jsonpurl (String) url to fetchopts (Object), optional
param (String) name of the query string parameter to specify
the callback (defaults to callback)timeout (Number) how long after a timeout error is emitted. 0 to
disable (defaults to 60000)prefix (String) prefix for the global callback functions that
handle jsonp responses (defaults to __jp)name (String) name of the global callback functions that
handle jsonp responses (defaults to prefix + incremented counter)fn callbackThe callback is called with err, data parameters.
If it times out, the err will be an Error object whose message is
Timeout.
Returns a function that, when called, will cancel the in-progress jsonp request
(fn won't be called).
MIT
Estimated unpacked size across 3 packages.
48.4 kB
Includes dependencies.
rauchg
rauchg@gmail.com