{"id":15965197,"url":"https://github.com/borodean/jsonp","last_synced_at":"2026-02-09T00:32:06.661Z","repository":{"id":143735875,"uuid":"80387554","full_name":"borodean/jsonp","owner":"borodean","description":"JSONP function in 265 bytes","archived":false,"fork":false,"pushed_at":"2025-01-24T22:50:51.000Z","size":211,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-23T18:47:13.368Z","etag":null,"topics":["browser","jsonp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borodean.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2017-01-30T02:10:47.000Z","updated_at":"2020-05-09T04:58:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"0d6f5bdd-cabc-4200-b707-183925ab4fb8","html_url":"https://github.com/borodean/jsonp","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/borodean/jsonp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borodean%2Fjsonp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borodean%2Fjsonp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borodean%2Fjsonp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borodean%2Fjsonp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borodean","download_url":"https://codeload.github.com/borodean/jsonp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borodean%2Fjsonp/sbom","scorecard":{"id":248524,"data":{"date":"2025-08-11","repo":{"name":"github.com/borodean/jsonp","commit":"525a25facc09a369f283c47ee8a411c2b27357ca"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 3.0.2 not signed: https://api.github.com/repos/borodean/jsonp/releases/23663943","Warn: release artifact 3.0.1 not signed: https://api.github.com/repos/borodean/jsonp/releases/23653610","Warn: release artifact 3.0.0 not signed: https://api.github.com/repos/borodean/jsonp/releases/23646459","Warn: release artifact 2.0.0 not signed: https://api.github.com/repos/borodean/jsonp/releases/5631686","Warn: release artifact 1.2.0 not signed: https://api.github.com/repos/borodean/jsonp/releases/5577257","Warn: release artifact 3.0.2 does not have provenance: https://api.github.com/repos/borodean/jsonp/releases/23663943","Warn: release artifact 3.0.1 does not have provenance: https://api.github.com/repos/borodean/jsonp/releases/23653610","Warn: release artifact 3.0.0 does not have provenance: https://api.github.com/repos/borodean/jsonp/releases/23646459","Warn: release artifact 2.0.0 does not have provenance: https://api.github.com/repos/borodean/jsonp/releases/5631686","Warn: release artifact 1.2.0 does not have provenance: https://api.github.com/repos/borodean/jsonp/releases/5577257"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T08:03:16.277Z","repository_id":143735875,"created_at":"2025-08-17T08:03:16.278Z","updated_at":"2025-08-17T08:03:16.278Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29251536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T22:49:53.206Z","status":"ssl_error","status_checked_at":"2026-02-08T22:49:51.384Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["browser","jsonp"],"created_at":"2024-10-07T17:40:22.500Z","updated_at":"2026-02-09T00:32:06.644Z","avatar_url":"https://github.com/borodean.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version][npm-badge]][npm] [![Build status][travis-badge]][travis] [![Coverage][coveralls-badge]][coveralls] [![Sauce test status][sauce-badge]][sauce]\n\n# jsonp(url[, options], callback)\n\n- `url` \u0026lt;String\u0026gt; The URL to which the request is sent.\n- `options` \u0026lt;Object\u0026gt;\n  - `parameter` \u0026lt;String\u0026gt; The name of the JSONP query parameter. Defaults to `\"callback\"`.\n  - `object` \u0026lt;Object\u0026gt; An object to which to attach the JSONP callback. Defaults to `window`.\n  - `key` \u0026lt;String\u0026gt; The name of the JSONP callback. Defaults to an automatically generated unique value.\n- `callback` \u0026lt;Function(err, data)\u0026gt; A callback function that receives the data.\n\nLoads data from the server using [JSONP][jsonp]. Example:\n\n```js\nimport jsonp from '@borodean/jsonp';\n\njsonp('https://jsfiddle.net/echo/jsonp?foo=bar', (err, data) =\u003e {\n  if (err) throw err;\n  console.log(data);\n});\n```\n\n## Promise version\n\nA version that returns a promise is also available:\n\n```js\nimport jsonp from '@borodean/jsonp/promise';\n\njsonp('https://jsfiddle.net/echo/jsonp?foo=bar').then(\n  data =\u003e console.log(data),\n  err =\u003e console.log(err)\n);\n```\n\n## Installation\n\n```\nnpm install @borodean/jsonp\n```\n\nFor a browser global version check the `dist` directory of the installed module or directly download it:\n\n- [Production version][dl-callback] – 265 bytes, minified and gzipped\n- [Source map][dl-callback-map]\n\nPromise version:\n\n- [Production version][dl-promise] – 277 bytes, minified and gzipped\n- [Source map][dl-promise-map]\n\n[coveralls]:       https://coveralls.io/github/borodean/jsonp\n[coveralls-badge]: https://img.shields.io/coveralls/borodean/jsonp/master\n[dl-callback]:     https://github.com/borodean/jsonp/releases/download/3.0.2/jsonp-3.0.2.min.js\n[dl-callback-map]: https://github.com/borodean/jsonp/releases/download/3.0.2/jsonp-3.0.2.min.js.map\n[dl-promise]:      https://github.com/borodean/jsonp/releases/download/3.0.2/jsonp-promise-3.0.2.min.js\n[dl-promise-map]:  https://github.com/borodean/jsonp/releases/download/3.0.2/jsonp-promise-3.0.2.min.js.map\n[jsonp]:           http://bob.ippoli.to/archives/2005/12/05/remote-json-jsonp/\n[npm]:             https://www.npmjs.com/package/@borodean/jsonp\n[npm-badge]:       https://img.shields.io/npm/v/@borodean/jsonp\n[sauce]:           https://saucelabs.com/u/borodean-jsonp\n[sauce-badge]:     https://badges.herokuapp.com/sauce/borodean-jsonp\n[travis]:          https://travis-ci.org/borodean/jsonp\n[travis-badge]:    https://img.shields.io/travis/borodean/jsonp/master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborodean%2Fjsonp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborodean%2Fjsonp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborodean%2Fjsonp/lists"}