{"_id":"@cuisine/video-helper","_rev":"7-c1f2fe6af2ee3f545ce230b68488a527","name":"@cuisine/video-helper","dist-tags":{"latest":"1.1.4"},"versions":{"1.0.0":{"name":"@cuisine/video-helper","version":"1.0.0","keywords":["video","iframe","youtube","vimeo","embed"],"author":{"name":"Roberto Notario"},"license":"ISC","_id":"@cuisine/video-helper@1.0.0","maintainers":[{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},{"name":"notariorob","email":"notariorob@gmail.com"},{"name":"davidblumer","email":"npm@davidblumer.de"}],"dist":{"shasum":"68e9129f7e287d23303f5348cb001a2a5dea902b","tarball":"https://registry.npmjs.org/@cuisine/video-helper/-/video-helper-1.0.0.tgz","fileCount":7,"integrity":"sha512-vQdvxXlD/50E4cPlpdTLWB8mBZfzs5RiEOcgI8d/wbP8I8ElUsstKht01Gw1i/q+9YZUlcNPeyWaoT72RYmqYQ==","signatures":[{"sig":"MEQCIFLkjoQbGzSyiaSFcvLeTKAfXKAVySct8xdbHuanTcpHAiB2W9V7N93o6nOtALH/QRsg8kkf7+1FZzzLWaOYw+9rEg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13484},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"06299aeeddb43b75b2a0657af9f736d5cb43931f","scripts":{"test":"jest","build":"yarn test && tsup"},"_npmUser":{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},"_npmVersion":"8.15.0","description":"Collection of helper functions to generate embed urls for videos from different providers (vimeo, youtube, etc.)","directories":{},"resolutions":{"strip-ansi":"6.0.0"},"_nodeVersion":"16.17.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^8.0.2","ts-jest":"^29.1.2","ts-node":"^10.9.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/video-helper_1.0.0_1709637789332_0.084271726933832","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@cuisine/video-helper","version":"1.0.1","keywords":["video","iframe","youtube","vimeo","embed"],"author":{"name":"Roberto Notario"},"license":"ISC","_id":"@cuisine/video-helper@1.0.1","maintainers":[{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},{"name":"notariorob","email":"notariorob@gmail.com"},{"name":"davidblumer","email":"npm@davidblumer.de"}],"dist":{"shasum":"0a6131737de1f8ae2e22ba72e111c6cabcda2cfd","tarball":"https://registry.npmjs.org/@cuisine/video-helper/-/video-helper-1.0.1.tgz","fileCount":7,"integrity":"sha512-D0yQCEjqj+E5YXARqssJ7YWE4yZyL3p5B8XMcmbec69ThakC8YgNVNbkPtGu82qKRBLQ7225OcyF6i0X0bZ0EQ==","signatures":[{"sig":"MEYCIQDNBo7FM0U8K2rL9xBlsXQabBKoLVSyGeQgMVvejYPmOgIhAObQJLS4Hvma2FR9xfeRHAiOEdjaAsMuurigcJPLlG43","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13152},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"06299aeeddb43b75b2a0657af9f736d5cb43931f","scripts":{"test":"jest","build":"yarn test && tsup"},"_npmUser":{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},"_npmVersion":"8.15.0","description":"Collection of helper functions to generate embed urls for videos from different providers (vimeo, youtube, etc.)","directories":{},"resolutions":{"strip-ansi":"6.0.0"},"_nodeVersion":"16.17.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^8.0.2","ts-jest":"^29.1.2","ts-node":"^10.9.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/video-helper_1.0.1_1709638032090_0.3761492387219072","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@cuisine/video-helper","version":"1.0.2","keywords":["video","iframe","youtube","vimeo","embed"],"author":{"name":"Roberto Notario"},"license":"ISC","_id":"@cuisine/video-helper@1.0.2","maintainers":[{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},{"name":"notariorob","email":"notariorob@gmail.com"},{"name":"davidblumer","email":"npm@davidblumer.de"}],"dist":{"shasum":"7d46d8f073f82bfb2ac9a7baf0fc17fa8e9c2e93","tarball":"https://registry.npmjs.org/@cuisine/video-helper/-/video-helper-1.0.2.tgz","fileCount":8,"integrity":"sha512-no8NPtwd1f8eOtmh82AefNuWGfUQo69lhdb0/3J0GcQO01arRTHHTWNtwaO8yaMensPpau8GiD/eG+4uSmPYZA==","signatures":[{"sig":"MEUCIGxsl7EI+IRbY+w7S/hKYPlYX4z/buCQGOLYujDZfHeoAiEAyJzSf8zuwZmIrC5YumGA0hwMsaUXDRPaGxhuN+l9qG8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15652},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"0fe175345591c57f37ac3da38149b061f9e6de03","scripts":{"test":"jest","build":"yarn test && tsup"},"_npmUser":{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},"_npmVersion":"8.15.0","description":"Collection of helper functions to generate embed urls for videos from different providers (vimeo, youtube, etc.)","directories":{},"resolutions":{"strip-ansi":"6.0.0"},"_nodeVersion":"16.17.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^8.0.2","ts-jest":"^29.1.2","ts-node":"^10.9.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/video-helper_1.0.2_1709642132302_0.18790360633749503","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@cuisine/video-helper","version":"1.1.0","keywords":["video","iframe","youtube","vimeo","embed"],"author":{"name":"Roberto Notario"},"license":"ISC","_id":"@cuisine/video-helper@1.1.0","maintainers":[{"name":"davidblumer","email":"npm@davidblumer.de"},{"name":"notariorob","email":"notariorob@gmail.com"},{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"}],"dist":{"shasum":"53a51519dc03d36ce34b1a83a664d4d0fe85ccf2","tarball":"https://registry.npmjs.org/@cuisine/video-helper/-/video-helper-1.1.0.tgz","fileCount":8,"integrity":"sha512-AEUJqAhQikPtm+uTduqp6RZx9r/WtqV+JU+xq9CJ91fEznlRNiLMW7LWgi+T47H2WPqGsvc/Iuzy13yX9+k/Ew==","signatures":[{"sig":"MEYCIQDLadDV9h5nN+LGKeSf0fWes1I+aLQ5nMd+n68t1PKWTQIhAKiSKKI8MwuK63Z8uHevsYpv8QTcKFezbRZUeoPE+1yN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17920},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"9851b3afd1dc672156fb34e5779c0754084d7c6c","scripts":{"test":"jest","build":"yarn test && tsup"},"_npmUser":{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},"_npmVersion":"9.8.1","description":"Collection of helper functions to generate embed urls for videos from different providers (vimeo, youtube, etc.)","directories":{},"resolutions":{"strip-ansi":"6.0.0"},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^8.0.2","ts-jest":"^29.1.2","ts-node":"^10.9.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/video-helper_1.1.0_1737985198746_0.8142554354386207","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@cuisine/video-helper","version":"1.1.1","keywords":["video","iframe","youtube","vimeo","embed"],"author":{"name":"Roberto Notario"},"license":"ISC","_id":"@cuisine/video-helper@1.1.1","maintainers":[{"name":"davidblumer","email":"npm@davidblumer.de"},{"name":"notariorob","email":"notariorob@gmail.com"},{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"}],"dist":{"shasum":"3637978e204a7aa54683b9460e8966fc097374ea","tarball":"https://registry.npmjs.org/@cuisine/video-helper/-/video-helper-1.1.1.tgz","fileCount":8,"integrity":"sha512-fiXiacAc7aEsV9wIueHZgDMy9O+eOUQnOQonB5gYgUiG/GwIRRgjMYxibhjyzoEkk9GDJvTOZgJyKZl7YUk4HA==","signatures":[{"sig":"MEUCIB7EHmyRld4OCZ5Xj1mTa/BG/kcWVZqWygnBlND9p19eAiEA030MfDeApe3JVpWhLnAhOlOnNE49ev/9tq2LWo1Mgfk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17920},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"a1c25ff7d6545fa5dd17c0d576cf5df6aad9c662","scripts":{"test":"jest","build":"yarn test && tsup"},"_npmUser":{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},"_npmVersion":"10.8.2","description":"Collection of helper functions to generate embed urls for videos from different providers (vimeo, youtube, etc.)","directories":{},"resolutions":{"strip-ansi":"6.0.0"},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^8.0.2","ts-jest":"^29.1.2","ts-node":"^10.9.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/video-helper_1.1.1_1739262921253_0.8922167008509341","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@cuisine/video-helper","version":"1.1.2","keywords":["video","iframe","youtube","vimeo","embed"],"author":{"name":"Roberto Notario"},"license":"ISC","_id":"@cuisine/video-helper@1.1.2","maintainers":[{"name":"davidblumer","email":"npm@davidblumer.de"},{"name":"notariorob","email":"notariorob@gmail.com"},{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"}],"dist":{"shasum":"c0ed74d294e2d033b8e5534c281c0356af78aad6","tarball":"https://registry.npmjs.org/@cuisine/video-helper/-/video-helper-1.1.2.tgz","fileCount":8,"integrity":"sha512-cL9D4pdQnhjJ5wXa+tROzZ8vDrOyU+f2fkdGxYZ7IUy2R5jiEo1UYXsIIAklEPjBw/I0U4EW3jmhD00N9zeQ3Q==","signatures":[{"sig":"MEYCIQDFVgHG4OTfdnqYnqaSphI+mV4+HUfJGNcq/trcJmkWbAIhAMAZmQtxFRrACYKhEp1bV1h5bG8yyM1yQPamQPBTRMfx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18200},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"a1c25ff7d6545fa5dd17c0d576cf5df6aad9c662","scripts":{"test":"jest","build":"yarn test && tsup"},"_npmUser":{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},"_npmVersion":"9.8.1","description":"Collection of helper functions to generate embed urls for videos from different providers (vimeo, youtube, etc.)","directories":{},"resolutions":{"strip-ansi":"6.0.0"},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^8.0.2","ts-jest":"^29.1.2","ts-node":"^10.9.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/video-helper_1.1.2_1739265411799_0.9139076390756067","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@cuisine/video-helper","version":"1.1.3","keywords":["video","iframe","youtube","vimeo","embed"],"author":{"name":"Roberto Notario"},"license":"ISC","_id":"@cuisine/video-helper@1.1.3","maintainers":[{"name":"davidblumer","email":"npm@davidblumer.de"},{"name":"notariorob","email":"notariorob@gmail.com"},{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"}],"dist":{"shasum":"763e30fc983860c3a149387bcee86af020e28ffe","tarball":"https://registry.npmjs.org/@cuisine/video-helper/-/video-helper-1.1.3.tgz","fileCount":8,"integrity":"sha512-60KhZtNCmZALUllOk8vSocafY/mOm/PiOZdlh0tOWPnMJjYs2wuHK7qgtURoh9c9ebYXd5m7299vzmAV40cNGA==","signatures":[{"sig":"MEUCIDhmnluby8gcg2bYzTr/guQ3pXQ56/2jqBfwfUq6tbJBAiEA25g1duKKiTpH+EPCqx0VtO0EWxQ5SkgfUe5S4fWODws=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18200},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"a1c25ff7d6545fa5dd17c0d576cf5df6aad9c662","scripts":{"test":"jest","build":"yarn test && tsup"},"_npmUser":{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},"_npmVersion":"9.8.1","description":"Collection of helper functions to generate embed urls for videos from different providers (vimeo, youtube, etc.)","directories":{},"resolutions":{"strip-ansi":"6.0.0"},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tsup":"^8.0.2","ts-jest":"^29.1.2","ts-node":"^10.9.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/video-helper_1.1.3_1739265435588_0.5288626614757679","host":"s3://npm-registry-packages-npm-production"}},"1.1.4":{"name":"@cuisine/video-helper","version":"1.1.4","description":"Collection of helper functions to generate embed urls for videos from different providers (vimeo, youtube, etc.)","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"yarn test && tsup","test":"jest"},"keywords":["video","iframe","youtube","vimeo","embed"],"author":{"name":"Roberto Notario"},"license":"ISC","devDependencies":{"@types/jest":"^29.5.12","jest":"^29.7.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","tsup":"^8.0.2","typescript":"^5.3.3"},"resolutions":{"strip-ansi":"6.0.0"},"_id":"@cuisine/video-helper@1.1.4","gitHead":"a1c25ff7d6545fa5dd17c0d576cf5df6aad9c662","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-KqGTKkZHqeAzoVN5kdH03vwr1EeAbXZK9XFrSLDUcU9VjOkzGZckDAGUbG9e3rAFHsfDP3Uf9J3MqbCn+kvPtA==","shasum":"6f49709c43b33b135dfe2e958249a67d2324edd5","tarball":"https://registry.npmjs.org/@cuisine/video-helper/-/video-helper-1.1.4.tgz","fileCount":8,"unpackedSize":18452,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCNe+nNVS3EkoJeV3Lrj691XbwnuDaJvF6o4mLNQ8ZIAQIgO1VnIYuMcSLwSlxn1RMSjQmuxMUHWmgQsNVBy/GF+Yg="}]},"_npmUser":{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"},"directories":{},"maintainers":[{"name":"davidblumer","email":"npm@davidblumer.de"},{"name":"notariorob","email":"notariorob@gmail.com"},{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/video-helper_1.1.4_1739265533207_0.44611415096136975"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-05T11:23:09.199Z","modified":"2025-02-11T09:18:53.632Z","1.0.0":"2024-03-05T11:23:09.482Z","1.0.1":"2024-03-05T11:27:12.257Z","1.0.2":"2024-03-05T12:35:32.432Z","1.1.0":"2025-01-27T13:39:58.956Z","1.1.1":"2025-02-11T08:35:21.430Z","1.1.2":"2025-02-11T09:16:51.985Z","1.1.3":"2025-02-11T09:17:15.749Z","1.1.4":"2025-02-11T09:18:53.433Z"},"author":{"name":"Roberto Notario"},"license":"ISC","keywords":["video","iframe","youtube","vimeo","embed"],"description":"Collection of helper functions to generate embed urls for videos from different providers (vimeo, youtube, etc.)","maintainers":[{"name":"davidblumer","email":"npm@davidblumer.de"},{"name":"notariorob","email":"notariorob@gmail.com"},{"name":"roberto.notario","email":"roberto.notario@cuisine.digital"}],"readme":"# video-helper\n\nEmbed url generator for video streaming platforms.\n\nCurrently supported platforms:\n\n- youtube\n- vimeo\n\n### How to install\n\n`npm install @cuisine/video-helper`\n\n## generateEmbedUrl(url: string)\n\nReceives an url from a video provider and returns the provider specific embed url\n\n#### Supported url formats\n\n- Youtube\n  - https://www.youtube.com/watch?v=123456\n  - https://www.youtube.com/watch?v=123456?t=1\n  - https://www.youtube.com/shorts/123456\n  - https://www.youtube.com/shorts/123456?t=1\n  - https://youtu.be/123456\n- Vimeo\n  - https://vimeo.com/123456\n  - https://vimeo.com/123456/whatever\n  - https://player.vimeo.com/video/123456\n\n#### Example\n\n`generateEmbedUrl(\"https://www.youtube.com/watch?v=123456\")` will output `https://www.youtube.com/embed/123456`\n\n## generateEmbedUrlFromProvider(id: string, provider: VideoProvider)\n\nReceives a video id and a specific provider (from the list of supported providers) and returns the provider specific embed url\n\n## isSupported(url: string)\n\nReceives an url and returns if it is supported by the library\n\n## isYoutubeShortsUrl(url: string)\n\nReceives an url and returns true if it belongs to a Youtube short\n\n#### Supported providers\n\n- youtube\n- vimeo\n\n#### Example\n\n`generateEmbedUrlFromProvider(\"123456\", \"youtube\")` will output `https://www.youtube.com/embed/123456`\n","readmeFilename":"README.md"}