{"id":13677129,"url":"https://github.com/webmodules/jsonp","last_synced_at":"2025-10-07T01:19:02.195Z","repository":{"id":3800135,"uuid":"4878992","full_name":"webmodules/jsonp","owner":"webmodules","description":"A simple JSONP implementation","archived":false,"fork":false,"pushed_at":"2024-04-08T14:08:00.000Z","size":33,"stargazers_count":1907,"open_issues_count":30,"forks_count":330,"subscribers_count":52,"default_branch":"master","last_synced_at":"2025-05-11T02:43:25.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webmodules.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-07-04T00:16:38.000Z","updated_at":"2025-04-07T02:25:29.000Z","dependencies_parsed_at":"2024-06-18T11:18:00.192Z","dependency_job_id":null,"html_url":"https://github.com/webmodules/jsonp","commit_stats":{"total_commits":44,"total_committers":14,"mean_commits":3.142857142857143,"dds":0.6818181818181819,"last_synced_commit":"790398945dc391ad2f06b365193a040a3dc01977"},"previous_names":["learnboost/jsonp"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmodules%2Fjsonp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmodules%2Fjsonp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmodules%2Fjsonp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmodules%2Fjsonp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webmodules","download_url":"https://codeload.github.com/webmodules/jsonp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254310520,"owners_count":22049470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T13:00:37.388Z","updated_at":"2025-10-07T01:18:57.148Z","avatar_url":"https://github.com/webmodules.png","language":"JavaScript","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","funding_links":[],"categories":["JavaScript","24. 前后端交互"],"sub_categories":["24.1 Ajax模块"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmodules%2Fjsonp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebmodules%2Fjsonp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmodules%2Fjsonp/lists"}