{"id":15369084,"url":"https://github.com/developit/jasonp","last_synced_at":"2025-04-15T13:41:55.745Z","repository":{"id":35871837,"uuid":"40157044","full_name":"developit/jasonp","owner":"developit","description":"An itty bitty JSONP module","archived":false,"fork":false,"pushed_at":"2017-05-09T14:51:21.000Z","size":10,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T11:16:07.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://npm.im/jasonp","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/developit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-04T01:40:57.000Z","updated_at":"2023-09-25T07:42:22.000Z","dependencies_parsed_at":"2022-09-18T17:02:03.792Z","dependency_job_id":null,"html_url":"https://github.com/developit/jasonp","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fjasonp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fjasonp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fjasonp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fjasonp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/jasonp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248629579,"owners_count":21136276,"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-10-01T13:34:03.951Z","updated_at":"2025-04-15T13:41:55.726Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"jasonp [![npm]](http://npm.im/jasonp) [![bower]](http://bower.io/search/?q=jasonp)\n======\n\nA tiny module that provides a logical interface for making JSONP requests.\n\n\u003e _This is supposed to be funny because my name is Jason._\n\n\nUsage\n-----\n\n##### `jasonp(url, callback) -\u003e (err, ...data)`\n\nMake a JSONP request.\n\n* The callback is node-style (works nicely with [praline]).\n* Include a `{{callback}}` placeholder in the URL to replace it with the callback ID.\n* Requests time out after 10 seconds with `err='Timed out'`\n\n\nExample\n-------\n\n```js\nimport get from 'jasonp';\nlet url = 'http://foo.com/test.json';\nget(`${url}?callback={{callback}}`, (err, ...data) =\u003e {\n\tif (err) return console.error(err);\n\tconsole.log(...data);\n});\n```\n\n\nLicense\n-------\n\nMIT\n\n[npm]: https://img.shields.io/npm/v/jasonp.svg\n[bower]: https://img.shields.io/bower/v/jasonp.svg\n[praline]: (https://github.com/developit/praline)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fjasonp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fjasonp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fjasonp/lists"}