A simple JSONP implementation.
Install for node.js or browserify using npm:
$ npm install jsonpInstall for component(1) using component:
$ component install LearnBoost/jsonpurl(String) url to fetchopts(Object), optionalparam(String) name of the query string parameter to specify the callback (defaults tocallback)timeout(Number) how long after a timeout error is emitted.0to disable (defaults to60000)
fncallback
The callback is called with err, data parameters.
If it times out, the err will be an Error object whose message is
Timeout.
MIT