{"_id":"@aki77/oembed-element","_rev":"3-a3391c42c54cf0f1010b0c1fd6cf2093","name":"@aki77/oembed-element","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@aki77/oembed-element","version":"0.1.0","description":"oEmbed web component","main":"dist/o-embed-element.js","module":"dist/o-embed-element.js","type":"module","types":"dist/o-embed-element.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/aki77/oembed-element.git"},"scripts":{"clean":"rm -rf dist","compile":"tsc","lint":"eslint . --ext .ts,.js","prebuild":"npm run clean && npm run lint && npm run compile","build":"rollup -c","pretest":"npm run build","test":"karma start karma.config.cjs","prepublishOnly":"npm run build","postpublish":"npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"},"prettier":"@github/prettier-config","devDependencies":{"@github/prettier-config":"0.0.4","@rollup/plugin-node-resolve":"^13.0.4","@types/minimatch":"^3.0.5","chai":"^4.3.4","eslint":"^7.25.0","eslint-plugin-custom-elements":"^0.0.2","eslint-plugin-github":"^4.1.3","karma":"^6.3.2","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha":"^8.3.2","rollup":"^2.56.3","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-polyfill-node":"^0.7.0","typescript":"^4.2.4"},"dependencies":{"minimatch":"^3.0.4"},"gitHead":"adc646f41621ff46f7114c02b72d969a377a2057","bugs":{"url":"https://github.com/aki77/oembed-element/issues"},"homepage":"https://github.com/aki77/oembed-element#readme","_id":"@aki77/oembed-element@0.1.0","_nodeVersion":"14.17.2","_npmVersion":"6.14.13","dist":{"integrity":"sha512-d/S4FdX6hW7vhzSRAmL0Db1KAwRb+Lzs09BV8F6Y7g3uN1iZDweFy8kotG1iA/TJv23Lfiq0TWkgrME98ShVyg==","shasum":"c4e1716cfe2a108b59bd6c0fadf2d57eeed5aa7c","tarball":"https://registry.npmjs.org/@aki77/oembed-element/-/oembed-element-0.1.0.tgz","fileCount":8,"unpackedSize":58063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKsFmCRA9TVsSAnZWagAAvmYP+gORMvfT1h801SdqPMDa\nm+WphzVvw44splucriZLFn0qj2vcH68mAY1M9yHiPIKgzEpNIHUr+xTNZipc\nDA8NyDNTMlKCwsm2uratszC6QnHHmcW5F3Hx4DwsWRpMuk/htDuwhUCwCun2\n/q+52ncyswfmHNEVdzaeomb2TCaNyw2ZaCYWw2NJ7Eqc6W9FfdMousy78qCX\nfw3hO21aJWe1fZGA1qQJzr6DuzfYr5BM17AG677+Ng/vGI0jY1Ew1vWeZNfX\nMdl9KS+ByBgH8zhfe81H69/tPe1UJzSSw6pEyFi4OmSdff3DP2wsq+7JE/aF\nU3TPe02+ARzAVAs1ylChp5sjgLZPYZPiNesylzSPx+kwcqVIbGhErFg3jLEq\nkMQaoLtX3/x+ULl86P7XKtSjZ6JLZThc1T3Ipipj14iJfgSPsh8ZqKsweXy+\nWFjnDq/mN/M6tVDTcF8TpsW5ngi1Gg1Y61l1Yztm0ra5TsIFbSbqJmdJHCL3\nW0Ugn8cpMLJ51PxkoJLDBeLm+79xZYNHXSsHap5//dmamyU14BK2ZNnYxcLL\nYno4qv0/UuT+Ra7nu0Hap3UcBp1PB4ww1Lh+ZHs6soO/8EIyihCy76bC78Zo\nPgY+5CyCdRe7ydLtAduPmXfllZZUS6Gm09rgogLwGDWVGRw0zmCqwJmv1PnO\nd/xZ\r\n=QVsV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHJx/h5BfZC3qWFmwq4emHXVXLgfc67iW4GBBmjH9T/+AiBYQZRLGGDV//9ov5m2vA9NdSLaJOomNffzqkbsuzZVrw=="}]},"_npmUser":{"name":"aki77","email":"lala.akira+npm@gmail.com"},"directories":{},"maintainers":[{"name":"aki77","email":"lala.akira+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oembed-element_0.1.0_1630191974621_0.9878743676662143"},"_hasShrinkwrap":false},"0.1.1":{"name":"@aki77/oembed-element","version":"0.1.1","description":"oEmbed web component","main":"dist/o-embed-element.js","module":"dist/o-embed-element.js","type":"module","types":"dist/o-embed-element.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/aki77/oembed-element.git"},"scripts":{"clean":"rm -rf dist","compile":"tsc","lint":"eslint . --ext .ts,.js","prebuild":"npm run clean && npm run lint && npm run compile","build":"rollup -c","pretest":"npm run build","test":"karma start karma.config.cjs","prepublishOnly":"npm run build"},"prettier":"@github/prettier-config","devDependencies":{"@github/prettier-config":"0.0.4","@rollup/plugin-node-resolve":"^13.0.4","@types/minimatch":"^3.0.5","chai":"^4.3.4","eslint":"^7.25.0","eslint-plugin-custom-elements":"^0.0.2","eslint-plugin-github":"^4.1.3","karma":"^6.3.2","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha":"^8.3.2","rollup":"^2.56.3","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-polyfill-node":"^0.7.0","typescript":"^4.2.4"},"dependencies":{"minimatch":"^3.0.4"},"gitHead":"b9ba46484e125c991253772b0d439e695704868e","bugs":{"url":"https://github.com/aki77/oembed-element/issues"},"homepage":"https://github.com/aki77/oembed-element#readme","_id":"@aki77/oembed-element@0.1.1","_nodeVersion":"14.17.2","_npmVersion":"6.14.13","dist":{"integrity":"sha512-0TXukAFsUWtMyF4fX7fYLnJ+BEK/rrmJFEzI1FDCavo9TYe7S1tbs8Z1wp06tR9345pW697PxnVgFb1wPEvyjw==","shasum":"8e630cfdb156bae288e8958db4b73655ea95edab","tarball":"https://registry.npmjs.org/@aki77/oembed-element/-/oembed-element-0.1.1.tgz","fileCount":8,"unpackedSize":57964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKsNMCRA9TVsSAnZWagAAGiwP/0iGRmVFK5e3JaHFnqWt\nKOi69lOHoN26IWIGIv44Ph4OgxKZBeigoehpbuVGvIC4ZRsTgKtElPp9qDf7\nWHX65t4huqb+PmUU4qodubCi68V8ddSrWy+BCmT1mcrd/DYDX94mv6yKyQ9j\nzwsV5VQk30HEGiqEja6XipPjEKDY249Zgn0B9ppmDYk746Pvd479MoQiPe03\n54BTK7Tle7FPmpuwBggBMtwYCmb+EeJaHSTX9RABBoFaoJno2Yeb9ib4RzmW\n+Qiwz4U61k7DXIjO9nGis45g2XxUF0th7ZJBxQQTpPHz/S7ngYSkWTUQ8m+U\nBG8FlzbC6OkEeTTjixIJWAr6kZdtboE1KjJt+nyUwNh0qMMP7hcRp6ow0RPP\nwCtuCyDHZsQg2BtcwDh4+MnA37vk3lmGhzf9aEea78ZjIwKG/gd+Kj9b5sTB\nu1wrNO3D+wBx0SgVpBmmcq9zUnpI6HdGBA9+juXyDlg/x9bBtkPIKhcUKYHQ\nYge7zMnzV36Q/9F/lfBh0rkaKpxq5mQFdyqA+gEPPYwYnN1N4TtsBAhPVS4u\nWE1QYa2qy6eaO1A2AuwZPG1mGqpz0Imew6zz0EwnQC1W6wgh1fTxbiHASDAN\nyZDxmw00p0eIFcx5dWKLJNqANXEJy27u/incPWasIriIA5RebFnahEtHR1pS\ngUGm\r\n=J7gX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4fd2N5h8ZxSLn/jAfa4jyg4uaN4DsHfBA8WdCA0sYuAIgHJcDJH+2ZCq7ctzREFRia2Wjphdp3jeHDKXfoRgrQpE="}]},"_npmUser":{"name":"aki77","email":"lala.akira+npm@gmail.com"},"directories":{},"maintainers":[{"name":"aki77","email":"lala.akira+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oembed-element_0.1.1_1630192460637_0.7337268355249142"},"_hasShrinkwrap":false},"0.1.2":{"name":"@aki77/oembed-element","version":"0.1.2","description":"oEmbed web component","main":"dist/o-embed-element.js","module":"dist/o-embed-element.js","type":"module","types":"dist/o-embed-element.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/aki77/oembed-element.git"},"scripts":{"clean":"rm -rf dist","compile":"tsc","lint":"eslint . --ext .ts,.js","prebuild":"npm run clean && npm run lint && npm run compile","build":"rollup -c","pretest":"npm run build","test":"karma start karma.config.cjs","prepublishOnly":"npm run build"},"prettier":"@github/prettier-config","devDependencies":{"@github/prettier-config":"0.0.4","@rollup/plugin-node-resolve":"^13.0.4","@types/minimatch":"^3.0.5","chai":"^4.3.4","eslint":"^7.25.0","eslint-plugin-custom-elements":"^0.0.2","eslint-plugin-github":"^4.1.3","karma":"^6.3.2","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","mocha":"^8.3.2","rollup":"^2.56.3","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-polyfill-node":"^0.7.0","typescript":"^4.2.4"},"dependencies":{"minimatch":"^3.0.4"},"gitHead":"662baf8c5a8b78d8261367bc0473bf4a2b95e45a","bugs":{"url":"https://github.com/aki77/oembed-element/issues"},"homepage":"https://github.com/aki77/oembed-element#readme","_id":"@aki77/oembed-element@0.1.2","_nodeVersion":"14.17.2","_npmVersion":"6.14.13","dist":{"integrity":"sha512-1c6tI6cmnJ8eaboUKIAVLxDc+WhV+fgpNixnvSJgJ2KAIWWPusSQrH41HVX++8JBFfaoF1/GQtRgTdas8iskzw==","shasum":"8621066b0c1dbb542738a8df68b4bdf3c476c7b4","tarball":"https://registry.npmjs.org/@aki77/oembed-element/-/oembed-element-0.1.2.tgz","fileCount":8,"unpackedSize":58640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKtJ1CRA9TVsSAnZWagAAXbAP/jU9y6y+M0vChUwN5PEl\n8fJLphs1HX7XgpunxHS9cFYiZ7FZtZpedeW+9pcS6006jY2mWmPJptGXcxem\nDTti0FApD5iFoPDZaCC4H8xK97pcx3xO3g7ar5I0/4qLDku8PEi1jNJwCeuV\n9OOUf9PxtJUf5XwR6OCFYXxe4V0ybx7fAbY+bdDoRLpU0bJ+aUPModhyuefS\nyNs0TKUdOAvw+5yWPtlnksCjDG1W68J2UYx3aAN80MlhIxNcWb6LIvKbkmCU\nKQSGy2HjZcE6UcZthlhiisbGjNUx5a8kTkEOFtz8euYAlT3YUxmOkjsTkcSI\ny96olnzduDSgbTug3ANB415z8AHYgJor5yjiRGsm6QfagHGlfb91QgMldnHd\n0yUzDHb0ldPisDyUAifbWXBusp7EK2ezOGfEPGALTcTOYGwHQNZ18oJB8WWa\nWam23a9gM3W03FXk0b9oJ1acr4jG8oBT7LQst3RLenMYPiknNJ9e0ACBUcJi\nriymz5CoL8mIdcCPBttktH2sRhB+tlmnRKpFt/OJSR/fQsihUWZyYa+BWhVn\n33qyxVhBEzyHxSEe755OUeB6uG1Ee+GVIxtvGC6VIaAVU57YI9K03NBs5b8C\nQGfFAhFlvlvoZlYDBzA+tJAEDMezht+9emaWSxcCfFhMuRnBYmh6F+glaSRn\nETxa\r\n=jb+M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGfyWoFeZ81I2VFkPyeSr33GeOLo6qpe0gmoDL+FZ5CbAiBXfzOv96PgdIcH2Eo3W+eBrzGi/kuIrmaQohpssYjqJg=="}]},"_npmUser":{"name":"aki77","email":"lala.akira+npm@gmail.com"},"directories":{},"maintainers":[{"name":"aki77","email":"lala.akira+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oembed-element_0.1.2_1630196340998_0.02162810555302208"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-28T23:06:14.556Z","0.1.0":"2021-08-28T23:06:14.768Z","modified":"2022-04-04T12:29:16.661Z","0.1.1":"2021-08-28T23:14:20.821Z","0.1.2":"2021-08-29T00:19:01.222Z"},"maintainers":[{"name":"aki77","email":"lala.akira+npm@gmail.com"}],"description":"oEmbed web component","homepage":"https://github.com/aki77/oembed-element#readme","repository":{"type":"git","url":"git+https://github.com/aki77/oembed-element.git"},"bugs":{"url":"https://github.com/aki77/oembed-element/issues"},"license":"MIT","readme":"# `<o-embed />`\n\noEmbed web component\n\n## Installation\n\n```\n$ npm install @aki77/oembed-element\n```\n\n## Usage\n\n```js\nimport '@aki77/oembed-element'\n```\n\n```html\n<o-embed url=\"https://www.youtube.com/watch?v=P_HNazfxhlU\" proxy=\"https://cors-proxy?%{url}\"></o-embed>\n```\n\n## Attributes\n\n### Required\n\n- `url`\n- `proxy`\n\n  most of the the sites do not have cors enabled, so cors proxy is necessary in most cases.\n  Above used proxy is just for demonstration and is slow and highly rate limited, so provide your own [Cors proxy](https://gist.github.com/jimmywarting/ac1be6ea0297c16c477e17f8fbe51347).\n\n### Optional\n\n- `option-query`\n\n  ```html\n  <o-embed url=\"...\" proxy=\"...\" option-query=\"maxwidth=700&maxheight=400\"></o-embed>\n  ```\n\n- `providers`\n\n  [Default providers](https://github.com/aki77/oembed-element/blob/main/src/default-providers.ts) are just a handful, you have hundreds to choose from.\n  Say you want to extend suppport to more sites, go to https://oembed.com/providers.json, choose a provider object and pass it. Say we pick the first one, TwoThreeHQ, we will use it like this.\n\n  ```html\n  <o-embed url=\"...\" proxy=\"...\" providers=\"[{\\\"provider_name\\\":\\\"23HQ\\\",\\\"provider_url\\\":\\\"http://www.23hq.com\\\",\\\"endpoints\\\":[{\\\"schemes\\\":[\\\"http://www.23hq.com/*/photo/*\\\"],\\\"url\\\":\\\"http://www.23hq.com/23/oembed\\\"}]}]\"></o-embed>\n  ```\n\n## Browser support\n\nBrowsers without native [custom element support][support] require a [polyfill][].\n\n- Chrome\n- Firefox\n- Safari\n- Microsoft Edge\n\n[support]: https://caniuse.com/#feat=custom-elementsv1\n[polyfill]: https://github.com/webcomponents/custom-elements\n\n## Development\n\n```\nnpm install\nnpm test\n```\n\n## License\n\nDistributed under the MIT license. See LICENSE for details.\n","readmeFilename":"README.md"}