{"name":"jsonp","description":"A sane JSONP implementation.","version":"0.0.4","dependencies":{"debug":"*"},"component":{"scripts":{"jsonp":"jsonp.js"}},"repository":{"type":"git","url":"https://github.com/LearnBoost/jsonp.git"},"bugs":{"url":"https://github.com/LearnBoost/jsonp/issues"},"homepage":"https://github.com/LearnBoost/jsonp","_id":"jsonp@0.0.4","_shasum":"94665a4b771aabecb8aac84135b99594756918bd","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"dist":{"shasum":"94665a4b771aabecb8aac84135b99594756918bd","tarball":"http://registry-npm.ywwl.com/jsonp/download/jsonp-0.0.4.tgz","integrity":"sha512-Pyo6SxnTXngwXJbpZkv+936u4Pq3BGZ5tuA77rLLppWQC09KjBsopGsD7uQZmCCaXjLx5C/XqksUh0yGyr4wog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyJOLFpX3+kVLs7bv0yw87A2JkQpbRjppZsun5P5tknAIgZErJpGDpa0mLxFM0W1Yt2cO7K2W0kNvAVPCUX+D6R7s="}],"size":1771,"noattachment":false,"key":"/jsonp/-/jsonp-0.0.4.tgz"},"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":1401832289469,"_cnpm_publish_time":1401832289469,"dist-tags":{"latest":"0.2.1"}}