{"name":"jsonp","description":"A sane JSONP implementation.","version":"0.2.1","dependencies":{"debug":"^2.1.3"},"component":{"scripts":{"jsonp":"jsonp.js"}},"repository":{"type":"git","url":"git+https://github.com/LearnBoost/jsonp.git"},"devDependencies":{"tape":"^3.5.0","zuul":"^1.17.1"},"scripts":{"test":"zuul -- test/*.js","test-local":"zuul --local -- test/*.js"},"gitHead":"790398945dc391ad2f06b365193a040a3dc01977","bugs":{"url":"https://github.com/LearnBoost/jsonp/issues"},"homepage":"https://github.com/LearnBoost/jsonp#readme","_id":"jsonp@0.2.1","_shasum":"a65b4fa0f10bda719a05441ea7b94c55f3e15bae","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"a65b4fa0f10bda719a05441ea7b94c55f3e15bae","tarball":"http://registry-npm.ywwl.com/jsonp/download/jsonp-0.2.1.tgz","integrity":"sha512-pfog5gdDxPdV4eP7Kg87M8/bHgshlZ5pybl+yKxAnCZ5O7lCIn7Ixydj03wOlnDQesky2BPyA91SQ+5Y/mNwzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCldzLufRgFc4cKBS1fpI/GNRe9FPbOgJislHkM/9QLxgIhAOP8N9AXZMYFhWg4OUfTkjm4doNBVS36VZb0aMex14yA"}],"size":3314,"noattachment":false,"key":"/jsonp/-/jsonp-0.2.1.tgz"},"maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"rauchg","email":"rauchg@gmail.com"},{"name":"tootallnate","email":"nathan@tootallnate.net"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsonp-0.2.1.tgz_1481179988894_0.9502592894714326"},"directories":{},"readme":"\n# jsonp\n\nA simple JSONP implementation.\n\n[![saucelabs][saucelabs-image]][saucelabs-url]\n\n## Installation\n\nInstall for node.js or browserify using `npm`:\n\n``` bash\n$ npm install jsonp\n```\n\nInstall for component(1) using `component`:\n\n``` bash\n$ component install LearnBoost/jsonp\n```\n\nInstall for browser using `bower`:\n\n``` bash\n$ bower install jsonp\n```\n\n## API\n\n### jsonp(url, opts, fn)\n\n- `url` (`String`) url to fetch\n- `opts` (`Object`), optional\n  - `param` (`String`) name of the query string parameter to specify\n    the callback (defaults to `callback`)\n  - `timeout` (`Number`) how long after a timeout error is emitted. `0` to\n    disable (defaults to `60000`)\n  - `prefix` (`String`) prefix for the global callback functions that\n    handle jsonp responses (defaults to `__jp`)\n  - `name` (`String`) name of the global callback functions that\n    handle jsonp responses (defaults to `prefix` + incremented counter)\n- `fn` callback\n\nThe callback is called with `err, data` parameters.\n\nIf it times out, the `err` will be an `Error` object whose `message` is\n`Timeout`.\n\nReturns a function that, when called, will cancel the in-progress jsonp request\n(`fn` won't be called).\n\n## License\n\nMIT\n\n[saucelabs-image]: https://saucelabs.com/browser-matrix/jsonp.svg\n[saucelabs-url]: https://saucelabs.com/u/jsonp\n","publish_time":1481179989128,"_cnpm_publish_time":1481179989128,"dist-tags":{"latest":"0.2.1"}}