{"id":21169570,"url":"https://github.com/polymerelements/iron-jsonp-library","last_synced_at":"2025-07-09T19:31:51.208Z","repository":{"id":31198073,"uuid":"34758841","full_name":"PolymerElements/iron-jsonp-library","owner":"PolymerElements","description":"Loads jsonp libraries.","archived":false,"fork":false,"pushed_at":"2023-10-16T14:04:36.000Z","size":233,"stargazers_count":14,"open_issues_count":4,"forks_count":14,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-20T15:52:09.276Z","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/PolymerElements.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-28T22:16:19.000Z","updated_at":"2019-10-11T14:39:18.000Z","dependencies_parsed_at":"2024-06-18T17:08:51.322Z","dependency_job_id":"5a213575-e323-4975-9656-e01475c3be3e","html_url":"https://github.com/PolymerElements/iron-jsonp-library","commit_stats":{"total_commits":110,"total_committers":19,"mean_commits":"5.7894736842105265","dds":0.6818181818181819,"last_synced_commit":"95bf602e2792fbcb8e60045c7c91e1f8492047c4"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Firon-jsonp-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Firon-jsonp-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Firon-jsonp-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Firon-jsonp-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PolymerElements","download_url":"https://codeload.github.com/PolymerElements/iron-jsonp-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225587811,"owners_count":17492632,"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-11-20T15:52:31.431Z","updated_at":"2024-11-20T15:52:32.373Z","avatar_url":"https://github.com/PolymerElements.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Published on NPM](https://img.shields.io/npm/v/@polymer/iron-jsonp-library.svg)](https://www.npmjs.com/package/@polymer/iron-jsonp-library)\n[![Build status](https://travis-ci.org/PolymerElements/iron-jsonp-library.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-jsonp-library)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://webcomponents.org/element/@polymer/iron-jsonp-library)\n\n## \u0026lt;iron-jsonp-library\u0026gt;\nLoads specified jsonp library.\n\nSee: [Documentation](https://www.webcomponents.org/element/@polymer/iron-jsonp-library),\n  [Demo](https://www.webcomponents.org/element/@polymer/iron-jsonp-library/demo/demo/index.html).\n\n## Polymer.IronJsonpLibraryBehavior\n\n`Polymer.IronJsonpLibraryBehavior` loads a jsonp library.\nMultiple components can request same library, only one copy will load.\n\nSome libraries require a specific global function be defined.\nIf this is the case, specify the `callbackName` property.\n\nYou should use an HTML Import to load library dependencies\nwhen possible instead of using this element.\n\n## Usage\n\n### Installation\n```\nnpm install --save @polymer/iron-jsonp-library\n```\n\n### In an html file\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript type=\"module\"\u003e\n      import '@polymer/polymer/lib/elements/dom-bind.js';\n      import '@polymer/iron-jsonp-library/iron-jsonp-library.js';\n    \u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdom-bind\u003e\n      \u003ctemplate\u003e\n        \u003ciron-jsonp-library\n            library-url=\"https://apis.google.com/js/plusone.js?onload=%%callback%%\"\n            notify-event=\"api-load\"\n            library-loaded=\"{{loaded}}\"\u003e\n        \u003c/iron-jsonp-library\u003e\n        \u003cspan\u003eLibrary Loaded: [[loaded]]\u003c/span\u003e\n      \u003c/template\u003e\n    \u003c/dom-bind\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n### In a Polymer 3 element\n```js\nimport {PolymerElement, html} from '@polymer/polymer';\nimport '@polymer/iron-jsonp-library/iron-jsonp-library.js';\n\nclass SampleElement extends PolymerElement {\n  static get template() {\n    return html`\n      \u003ciron-jsonp-library\n            library-url=\"https://apis.google.com/js/plusone.js?onload=%%callback%%\"\n            notify-event=\"api-load\"\n            library-loaded=\"{{loaded}}\"\u003e\n        \u003c/iron-jsonp-library\u003e\n        \u003cspan\u003eLibrary Loaded: [[loaded]]\u003c/span\u003e\n    `;\n  }\n}\ncustomElements.define('sample-element', SampleElement);\n```\n\n## Contributing\nIf you want to send a PR to this element, here are\nthe instructions for running the tests and demo locally:\n\n### Installation\n```sh\ngit clone https://github.com/PolymerElements/iron-jsonp-library\ncd iron-jsonp-library\nnpm install\nnpm install -g polymer-cli\n```\n\n### Running the demo locally\n```sh\npolymer serve --npm\nopen http://127.0.0.1:\u003cport\u003e/demo/\n```\n\n### Running the tests\n```sh\npolymer test --npm\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolymerelements%2Firon-jsonp-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolymerelements%2Firon-jsonp-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolymerelements%2Firon-jsonp-library/lists"}