{"_id":"@chailotl/remark-videos","_rev":"3-90735d620b97bed4ba58d05857b1cf8d","name":"@chailotl/remark-videos","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@chailotl/remark-videos","version":"1.0.0","description":"A remark plugin to embed videos the same way as images ","type":"module","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"unist-util-visit":"5.0.0"},"keywords":[],"author":{"name":"Chai"},"license":"MIT","gitHead":"5989dd2340cec9225b66b29b88d76294c522e424","_id":"@chailotl/remark-videos@1.0.0","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-g8QaHFlnPZ0sSFPzHm14u+NQro2kY4+ZKPYbn9D7POR5DSFEQNUBEKjTxS3pgXd12diMfQzlV8ema1jkGbSLjQ==","shasum":"6d6c7e422e5cdc87838106e423aa693673bf1245","tarball":"https://registry.npmjs.org/@chailotl/remark-videos/-/remark-videos-1.0.0.tgz","fileCount":5,"unpackedSize":2123,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHdLQO+mwGGe2jFeaZdvXKK8+KeH9Hx47AhzYhjWzLNAIgarFfohX/DCqnmrVdummrAuwW01aPvLrFGd6xOyec2Vo="}]},"_npmUser":{"name":"chailotl","email":"choccychai@gmail.com"},"directories":{},"maintainers":[{"name":"chailotl","email":"choccychai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-videos_1.0.0_1708842858416_0.9463640779951834"},"_hasShrinkwrap":false},"1.0.1":{"name":"@chailotl/remark-videos","version":"1.0.1","description":"A remark plugin to embed videos the same way as images ","type":"module","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"unist-util-visit":"5.0.0"},"keywords":["remark-plugin","videos","remark","unified","plugin","mdast","markdown"],"repository":{"type":"git","url":"git+https://github.com/chailotl/remark-videos.git"},"bugs":{"url":"https://github.com/chailotl/remark-videos/issues"},"author":{"name":"Chai"},"license":"MIT","gitHead":"e6f34be9f6f82fc8152d8fb94b2f91edbddb732a","homepage":"https://github.com/chailotl/remark-videos#readme","_id":"@chailotl/remark-videos@1.0.1","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-sHFLODDnuSMPYbjFI+pz52KyJy7GwtWVfao+pqguywvpMyUzXWbxrZeXr+x4I54XQ1v/XeDvoY1dVMzgBUr3Uw==","shasum":"a2e2dfaac564bb70de056c6105f17186b575f569","tarball":"https://registry.npmjs.org/@chailotl/remark-videos/-/remark-videos-1.0.1.tgz","fileCount":5,"unpackedSize":4437,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICdd8y/sHQ2EQy2l79h5jrODskhnr/R3pdKWAaJrGcuhAiBzeuFXlFw7kWwyBmxL5dZcCXgd9tXyssbxRGO7McnJpw=="}]},"_npmUser":{"name":"chailotl","email":"choccychai@gmail.com"},"directories":{},"maintainers":[{"name":"chailotl","email":"choccychai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-videos_1.0.1_1708870716395_0.20887512946254128"},"_hasShrinkwrap":false},"1.0.2":{"name":"@chailotl/remark-videos","version":"1.0.2","description":"A remark plugin to embed videos the same way as images ","type":"module","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"unist-util-visit":"5.0.0"},"keywords":["remark-plugin","videos","remark","unified","plugin","mdast","markdown"],"repository":{"type":"git","url":"git+https://github.com/chailotl/remark-videos.git"},"bugs":{"url":"https://github.com/chailotl/remark-videos/issues"},"author":{"name":"Chai"},"license":"MIT","gitHead":"5dd187620135da7a9cf97d6e60b9a6138e91ce22","homepage":"https://github.com/chailotl/remark-videos#readme","_id":"@chailotl/remark-videos@1.0.2","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-M4hhUBFSrwoy/6GUZq+ejVVhrrsPH9nPfC4o+UxeGZqXSaQjNSG+eio1x+AnT0dC9DDDt61woEW6RHsU2bdD5A==","shasum":"1a05c4417dbcc039296a7bfd90d9d05c24c2d2bf","tarball":"https://registry.npmjs.org/@chailotl/remark-videos/-/remark-videos-1.0.2.tgz","fileCount":5,"unpackedSize":4441,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBIjqegHZzxnNAr9Xou93fDs49ksLH+XkR9ch2M8Xy0bAiEAsrDbLLvrMWvFW7tK9n44B39EQQLE6Ec08JPb8f7QZiY="}]},"_npmUser":{"name":"chailotl","email":"choccychai@gmail.com"},"directories":{},"maintainers":[{"name":"chailotl","email":"choccychai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-videos_1.0.2_1708870821521_0.7841869980167504"},"_hasShrinkwrap":false},"1.0.4":{"name":"@chailotl/remark-videos","version":"1.0.4","description":"A remark plugin to embed videos with ![]()","type":"module","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"unist-util-visit":"5.0.0"},"keywords":["remark-plugin","videos","remark","unified","plugin","mdast","markdown"],"repository":{"type":"git","url":"git+https://github.com/chailotl/remark-videos.git"},"bugs":{"url":"https://github.com/chailotl/remark-videos/issues"},"author":{"name":"Chai"},"license":"MIT","gitHead":"21cbd98efb27fd7216f046295a92df2285dcdb0b","homepage":"https://github.com/chailotl/remark-videos#readme","_id":"@chailotl/remark-videos@1.0.4","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-1CJCzvbZoRTukV7JnjUic+i/1MmWla0M3tL3I/ilKbbZ3C+g9K/1BV8ZQwdGX2rhzmPb+z0Naukr4XlBzAX3KQ==","shasum":"4f98fa38fb297609441fc4cdcf086d021ace190c","tarball":"https://registry.npmjs.org/@chailotl/remark-videos/-/remark-videos-1.0.4.tgz","fileCount":5,"unpackedSize":4292,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCygjSHewTsir/Xjv1A9tKHt+UndDKxkeDEH9EZMGLMGQIgdXsEVoOm+L1gdvT0gkmGGrLW24pYfyQyBkL6CmXRFJU="}]},"_npmUser":{"name":"chailotl","email":"choccychai@gmail.com"},"directories":{},"maintainers":[{"name":"chailotl","email":"choccychai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-videos_1.0.4_1708924884848_0.14665215493626116"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-25T06:34:18.325Z","1.0.0":"2024-02-25T06:34:18.627Z","modified":"2024-02-26T05:21:25.432Z","1.0.1":"2024-02-25T14:18:36.557Z","1.0.2":"2024-02-25T14:20:21.669Z","1.0.4":"2024-02-26T05:21:25.021Z"},"maintainers":[{"name":"chailotl","email":"choccychai@gmail.com"}],"description":"A remark plugin to embed videos with ![]()","keywords":["remark-plugin","videos","remark","unified","plugin","mdast","markdown"],"author":{"name":"Chai"},"license":"MIT","readme":"# remark-videos\n\nA **[remark][]** plugin to embed videos with `![]()`.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n*   [Security](#security)\n*   [License](#license)\n\n\n## What is this?\n\nThis package is a [unified][] ([remark][]) plugin to embed videos with `![]()`.\n\n## When should I use this?\n\nThis project is useful if you want to embed videos using the `![]()` syntax.\n\n## Install\n\nThis package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]:\n\n```\nnpm install @chailotl/remark-videos\n```\n\n## Use\n\nSay we have the following file `example.md`.\n\n```md\n# Image\n\n![](image.png)\n\n# Video\n\n![](video.mp4)\n```\n\n...and a module `example.js`:\n\n```js\nimport {remark} from 'remark'\nimport remarkVideos from '@chailotl/remark-videos'\nimport {read} from 'to-vfile'\n\nconst file = await remark()\n  .use(remarkVideos)\n  .process(await read('example.md'))\n\nconsole.log(String(file))\n```\n\n...then running `node example.js` yields:\n\n```html\n<h1>Image</h1>\n<p><img src=\"image.png\" alt=\"\"></p>\n<h1>Video</h1>\n<p><video src=\"video.mp4\" controls=\"\"></video></p>\n```\n\n## API\n\nThis package exports no identifiers. The default export is [`remarkVideos`][api-remark-videos].\n\n#### `unified().use(remarkVideos)`\n\nEmbeds video links using the `![](video.mp4)` syntax\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\nTransform ([`Transformer`][unified-transformer]).\n\n## Security\n\nUse of `remark-videos` does not involve **[rehype][]** (**[hast][]**) or user\ncontent so there are no openings for [cross-site scripting (XSS)][wiki-xss]\nattacks.\n\n## License\n\n[MIT][license] © Chai\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[license]: license\n\n[hast]: https://github.com/syntax-tree/hast\n\n[rehype]: https://github.com/rehypejs/rehype\n\n[remark]: https://github.com/remarkjs/remark\n\n[unified]: https://github.com/unifiedjs/unified\n\n[unified-transformer]: https://github.com/unifiedjs/unified#transformer\n\n[wiki-xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n\n[api-remark-unlink]: #unifieduseremarkvideos","readmeFilename":"README.md","homepage":"https://github.com/chailotl/remark-videos#readme","repository":{"type":"git","url":"git+https://github.com/chailotl/remark-videos.git"},"bugs":{"url":"https://github.com/chailotl/remark-videos/issues"}}