{"id":15592175,"url":"https://github.com/derhuerst/parse-jsonp","last_synced_at":"2025-04-15T05:26:47.405Z","repository":{"id":57319369,"uuid":"97863044","full_name":"derhuerst/parse-jsonp","owner":"derhuerst","description":"Get the payload of a JSONP response.","archived":false,"fork":false,"pushed_at":"2020-05-12T01:56:14.000Z","size":102,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-25T00:30:23.773Z","etag":null,"topics":["ajax","cors","fetch","jsonp"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/parse-jsonp","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derhuerst.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-20T17:47:24.000Z","updated_at":"2023-03-11T07:26:02.000Z","dependencies_parsed_at":"2022-08-25T22:41:30.376Z","dependency_job_id":null,"html_url":"https://github.com/derhuerst/parse-jsonp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fparse-jsonp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fparse-jsonp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fparse-jsonp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fparse-jsonp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/parse-jsonp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232925311,"owners_count":18597661,"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":["ajax","cors","fetch","jsonp"],"created_at":"2024-10-02T23:56:54.123Z","updated_at":"2025-01-07T19:27:22.190Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":["https://patreon.com/derhuerst"],"categories":[],"sub_categories":[],"readme":"# parse-jsonp\n\n**Get the payload of a [JSONP](https://en.wikipedia.org/wiki/JSONP) response** in Node.js and in the browser. No `fetch`/AJAX logic in here.\n\n[![npm version](https://img.shields.io/npm/v/parse-jsonp.svg)](https://www.npmjs.com/package/parse-jsonp)\n[![build status](https://img.shields.io/travis/derhuerst/parse-jsonp.svg)](https://travis-ci.org/derhuerst/parse-jsonp)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/parse-jsonp.svg)\n[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)\n[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)\n\n\n## Installing\n\n```shell\nnpm install parse-jsonp\n```\n\n\n## Usage\n\n```js\nconst {fetch} = require('fetch-ponyfill')()\nconst parse = require('parse-jsonp')\n\nfetch('some-JSONP-url.js')\n.then((res) =\u003e res.text())\n.then((jsonp) =\u003e parse('callback', jsonp))\n.then(console.log, console.error)\n```\n\n## API\n\n```js\nparse(hook, jsonp)\n```\n\n\n## Contributing\n\nIf you have a question or have difficulties using `parse-jsonp`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/parse-jsonp/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fparse-jsonp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fparse-jsonp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fparse-jsonp/lists"}