{"_id":"fitvids","_rev":"17-adb14d2c4ea71bfb8cd21bf737552118","name":"fitvids","description":"Makes your videos fluid-width.","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"fitvids","version":"1.0.0","description":"Makes your videos fluid-width.","main":"index.js","scripts":{"test":"make test"},"devDependencies":{"hihat":"^2.4.3","tap-dev-tool":"^1.3.0","tape":"^4.2.0","uglify-js":"^2.4.24"},"keywords":["video","responsive","fluid","width","fitvids","wrapper"],"xo":{"env":["browser"],"semicolon":false,"rules":{"space-before-function-paren":[2,"always"],"curly":[2,"multi-line"]}},"author":{"name":"Ross Zurowski","email":"ross@rosszurowski.com"},"license":"WTFPL","homepage":"https://github.com/rosszurowski/vanilla-fitvids#readme","repository":{"type":"git","url":"git+https://github.com/rosszurowski/vanilla-fitvids.git"},"bugs":{"url":"https://github.com/rosszurowski/vanilla-fitvids/issues"},"gitHead":"1683cffb4817d5dddd40efc30f36a232736ffa19","_id":"fitvids@1.0.0","_shasum":"24256ede1ebc959543321b53e1f8bbbf402f49af","_from":".","_npmVersion":"2.13.4","_nodeVersion":"2.3.3","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"dist":{"shasum":"24256ede1ebc959543321b53e1f8bbbf402f49af","tarball":"https://registry.npmjs.org/fitvids/-/fitvids-1.0.0.tgz","integrity":"sha512-IJummaCnG7J82BThd4LbdRCSf+aVyID07pr8w016XCKEPJk4/sU87KM5OXbd0Z7poCsXKcc+j4EWUj+8P09moQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAIyOX/FXY3hXad5VxVnTDBee9uBnEzVvXyUGDGIkkVEAiEAp696ubA2zM5DnC/cn1DncwQew38YI4ynCoqnt6NwgRI="}]},"directories":{}},"1.0.1":{"name":"fitvids","version":"1.0.1","description":"Makes your videos fluid-width.","main":"index.js","scripts":{"test":"make test"},"devDependencies":{"hihat":"^2.4.3","tap-dev-tool":"^1.3.0","tape":"^4.2.0","uglify-js":"^2.4.24"},"keywords":["video","responsive","fluid","width","fitvids","wrapper"],"xo":{"env":["browser"],"semicolon":false,"rules":{"space-before-function-paren":[2,"always"],"curly":[2,"multi-line"]}},"author":{"name":"Ross Zurowski","email":"ross@rosszurowski.com"},"license":"WTFPL","homepage":"https://github.com/rosszurowski/vanilla-fitvids#readme","repository":{"type":"git","url":"git+https://github.com/rosszurowski/vanilla-fitvids.git"},"bugs":{"url":"https://github.com/rosszurowski/vanilla-fitvids/issues"},"gitHead":"81abd8522fb70473a5e46402e74ca479791f3a66","_id":"fitvids@1.0.1","_shasum":"9995c967bc5769af41d697b4b1cdc6d1f866e1a2","_from":".","_npmVersion":"2.13.4","_nodeVersion":"2.3.3","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"dist":{"shasum":"9995c967bc5769af41d697b4b1cdc6d1f866e1a2","tarball":"https://registry.npmjs.org/fitvids/-/fitvids-1.0.1.tgz","integrity":"sha512-oNFwgYyq9sYhXGQmZcw+X5gmzQGi3zdIcdSzl5mSdrh/MHrqJi/tqruJ6pG2sjKQLB224jKNMtJIr692kUu5qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCv59y7X/7/xoQdEb0I8RNbVZzQsKIDF/+mYtlgRHVggIgfPc66D/DztTYZlofqvnmqIGUZziCJAxswAQ1V+1e2h4="}]},"directories":{}},"1.0.2":{"name":"fitvids","version":"1.0.2","description":"Makes your videos fluid-width.","main":"index.js","scripts":{"test":"make test"},"devDependencies":{"hihat":"^2.4.3","tap-dev-tool":"^1.3.0","tape":"^4.2.0","uglify-js":"^2.4.24"},"keywords":["video","responsive","fluid","width","fitvids","wrapper"],"xo":{"env":["browser"],"semicolon":false,"rules":{"space-before-function-paren":[2,"always"],"curly":[2,"multi-line"]}},"author":{"name":"Ross Zurowski","email":"ross@rosszurowski.com"},"license":"WTFPL","homepage":"https://github.com/rosszurowski/vanilla-fitvids#readme","repository":{"type":"git","url":"git+https://github.com/rosszurowski/vanilla-fitvids.git"},"bugs":{"url":"https://github.com/rosszurowski/vanilla-fitvids/issues"},"gitHead":"7a182a385284f5f173c1c882ca5803bc4205febb","_id":"fitvids@1.0.2","_shasum":"5b53034f3b9c5c8bad14ab6475892c54ed0886ca","_from":".","_npmVersion":"2.13.4","_nodeVersion":"2.3.3","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"dist":{"shasum":"5b53034f3b9c5c8bad14ab6475892c54ed0886ca","tarball":"https://registry.npmjs.org/fitvids/-/fitvids-1.0.2.tgz","integrity":"sha512-7Mp2qb4osdI30tDnGWHaVxotY88xVs8qqtSSmlFOHzSqTXp7sXU8ZWm6MBGWLh04p+Kj4VX+7xFk4PiLmu93Ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBJjZEQWjSoa4oOQXKtqMw1CAujbTaA6Ze0fjuGy04dYAiEA3oCXHC1LG4zfoqtO9Clsj0tC2dmHcMHHRCbMUv7qwWQ="}]},"directories":{}},"2.0.0":{"name":"fitvids","version":"2.0.0","description":"Makes your videos fluid-width.","main":"index.js","scripts":{"build":"make build","test":"make test"},"devDependencies":{"hihat":"^2.6.4","tap-dev-tool":"^1.3.0","tape":"^4.2.0","uglify-js":"^2.4.24"},"keywords":["video","responsive","fluid","width","fitvids","wrapper"],"xo":{"env":["browser"],"semicolon":false,"rules":{"space-before-function-paren":[2,"always"],"curly":[2,"multi-line"]}},"author":{"name":"Ross Zurowski","email":"ross@rosszurowski.com"},"license":"WTFPL","homepage":"https://github.com/rosszurowski/vanilla-fitvids#readme","repository":{"type":"git","url":"git+https://github.com/rosszurowski/vanilla-fitvids.git"},"bugs":{"url":"https://github.com/rosszurowski/vanilla-fitvids/issues"},"gitHead":"1c26b63c397cc22eba6620627d4f35efc50a211e","_id":"fitvids@2.0.0","_shasum":"b7bb7a19db83fa021a9f980b6f02e82b2e3662c8","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"dist":{"shasum":"b7bb7a19db83fa021a9f980b6f02e82b2e3662c8","tarball":"https://registry.npmjs.org/fitvids/-/fitvids-2.0.0.tgz","integrity":"sha512-FTr7cN9FWzaCXa5+LfRTTTvN0PAvJcOARl5b0pwB/pe7pdCgNApKF1tEgOdOg8vagO/JoBIvPXheI7t/sHjW8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHy1G+c0QxGP/0JWtBETqfIj3HQKemWKh8xHvF0KP+P1AiEA3RZCpAZ0e8aOR3yrAJ/YO+118B0WM8Ux6GJUc7EOlV0="}]},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fitvids-2.0.0.tgz_1463854471837_0.8129874917212874"},"directories":{}},"2.1.0":{"name":"fitvids","version":"2.1.0","description":"Makes your videos fluid-width.","main":"index.js","scripts":{"build":"make build","test":"make test"},"devDependencies":{"hihat":"^2.6.4","tap-dev-tool":"^1.3.0","tape":"^4.2.0","uglify-js":"^2.4.24","xo":"^0.25.3"},"keywords":["video","responsive","fluid","width","fitvids","wrapper"],"xo":{"env":["browser"],"semicolon":false,"rules":{"space-before-function-paren":[2,"always"],"curly":[2,"multi-line"]}},"author":{"name":"Ross Zurowski","email":"ross@rosszurowski.com"},"license":"WTFPL","homepage":"https://github.com/rosszurowski/vanilla-fitvids#readme","repository":{"type":"git","url":"git+https://github.com/rosszurowski/vanilla-fitvids.git"},"bugs":{"url":"https://github.com/rosszurowski/vanilla-fitvids/issues"},"gitHead":"eb348e1692e4beddccaa3dc01360d8fc8ae51039","_id":"fitvids@2.1.0","_nodeVersion":"11.10.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-GmqysnCkQ1W+poWzkdQKrKgPtD0CRkr7ds7KNv0N3YaV1fFrVrsksDbPhNtE76Mk2q68fTNxIeJ52a6g5XYuVQ==","shasum":"8539c4c8ecaeaa02c7b98a0e522ce108afb9a172","tarball":"https://registry.npmjs.org/fitvids/-/fitvids-2.1.0.tgz","fileCount":8,"unpackedSize":18505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpo3zCRA9TVsSAnZWagAA67YQAIbrUMjKNiUT4WcUObOR\n9Q0J9pyhECLt4DDdf5jbmCX7Jd8qi/N53+HXZQMdOMmfF5Ni17elABZF6L8s\n9P4OM/OuyyMJcwLzelvqEgXsbBVg3bf2KyR7AlOJfnvpiNx5IKNh77Txojzo\nM39mLaPJJvJ2oy0QL+hlToDFdpXLwTPQPD6aN2aJ/L7wL6TxXJxUWkUVG9Ou\nm/c0HXy6CDdMmZOMpd1DSS9I+2AYpgswLDpg2TwUhd5QfrYqdxGgkTInuqMO\nxTl697kLK2+QD8MX6Wc7Xmi68dL/oDh2HTVg2KzBWlRc9nm8pOhw/kIIrlrZ\n8k/TKaaHyb8NcexFAWnwc9yx2MkAw2TXRXZtjRRHfRhasRpN+Qu0BkCs2+vm\n9kApNGmwmjKmJIPuwO79ShCWdAWBvcDxiVKkhBDiqj9U+oi5HzFh1jVTEzH9\nN731uaj3KZztJXk5ZTN/rex+fX5GOzLt+57yAbcZornH/E56A6NN8kpNx2gq\nYkzFOOkRIqimnVKPyoTvUv+6PC79vnb5arrR62dsJVPK6ecVZ90nShaT39tO\nOq6JXChQ9NcQLeM44uhFQUm4i4l7Fmjb8N1xd3hDoLACn2FYcho0bpCTR2Od\n5KrzHcaIyGaDSvZ/ZOys1s3JhXuznYSwOZJ2lt+p/KKD+4yEx0eXJmKESH7T\nkn/X\r\n=VnlE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICicMJ5jSbuPnO2vs0u6ysTcp50Eqy80qFG+g1ofy6ZwAiEAm0tbogfinMlfEADG40HpWS8pUCxVy90BzuJwdPYv61I="}]},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fitvids_2.1.0_1571196403252_0.02895195946904705"},"_hasShrinkwrap":false},"2.1.1":{"name":"fitvids","version":"2.1.1","description":"Makes your videos fluid-width.","main":"index.js","scripts":{"build":"make build","test":"make test"},"devDependencies":{"hihat":"^2.6.4","tap-dev-tool":"^1.3.0","tape":"^4.2.0","uglify-js":"^2.4.24","xo":"^0.25.3"},"keywords":["video","responsive","fluid","width","fitvids","wrapper"],"xo":{"env":["browser"],"semicolon":false,"rules":{"space-before-function-paren":[2,"always"],"curly":[2,"multi-line"]}},"author":{"name":"Ross Zurowski","email":"ross@rosszurowski.com"},"license":"WTFPL","homepage":"https://github.com/rosszurowski/vanilla-fitvids#readme","repository":{"type":"git","url":"git+https://github.com/rosszurowski/vanilla-fitvids.git"},"bugs":{"url":"https://github.com/rosszurowski/vanilla-fitvids/issues"},"gitHead":"f0687e6ef2c68419ed36239ef836b2867c257373","_id":"fitvids@2.1.1","_nodeVersion":"11.10.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-CvbOFRzdw1X1IieeVBu5NqR0eEFoAHXzq0MwTXXpKomiLhoOCR1BKYncmzW8415AygYg4RetZWJKbAb5wHxIVQ==","shasum":"91feb2c5f8c34181d6f6e00c668fd1c4f7f3166d","tarball":"https://registry.npmjs.org/fitvids/-/fitvids-2.1.1.tgz","fileCount":8,"unpackedSize":18467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdp3AhCRA9TVsSAnZWagAA0oMP/R2gjy83/XTBVknGcClB\nhKo64+2CfTrTl6op9wAlr5/oEFJ4u5Bspia2qstblFWISIPXvDa1Q6I/qM+0\nVYVYwDUeMrBOH+i/e0i12Cq4RapV+Exm1X1HAIt9ZDkpFmsZ6wx6EHvPtMtf\nDMMj4ocHPE7FRfvz+NsX/hUlQJC0kiHQeekclIhPOCqt1xzpwvw21KF9r6jq\np7W3ZQx4IFCo3bQfd9tcAB16U0GcJsoGpx93+Y6etpw9hdRj6DGKR694tNwg\nB8IKltWujnTnWuvTqK76Bm4rGbJQhJfjrhy3jyNavzCVstQy3YFM1gQ6nNnN\nKzSLjSv3NmSoGiSJ+XFuRmh/s+LYjwb+8OiDWFG5/5qf3rpq3SyctnZBuqPP\nMlmqit/1qzhYrNyLaZasOZ7fEvHQEC3FHrNFqDqalBlBYa4rGwPzmsCadrQi\nLue8zvz5IRsPSXmA9yeHUdxBFj551pIexDZDdkVqqlgAjYZwDX7JJJzzvgD1\nbSLBl0enDVb4KkBuOFetsqx0z+a3Ysr6Rrsn/ZekBU2jGGW1pYRNJU8SjprK\npNYdhM8ksHmhuScpd9oxFaSmItd4qG79kwivpZdsHWmdiGS8/2aH5vdmeLCW\nKKoqQ+T8yui4px1zwKp5KCXy/v6B77HgsPpPWIzAUL5ifLTe3kShbdX7XiiV\nRSTA\r\n=0Dci\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGxTkErUAr8hIIlx5wu25078fXL9b1pt6rj3VHm+h/sQIgf7OaeT72EjXrJvQld2xiE/WFMs8g4UvUy0xHOYf8AiQ="}]},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fitvids_2.1.1_1571254304352_0.9653017679581115"},"_hasShrinkwrap":false}},"readme":"# fitvids\n\nLets your videos be responsive by wrapping them in an [aspect ratio container](http://alistapart.com/article/creating-intrinsic-ratios-for-video).\n\nThis module is based heavily off of Dave Rupert's [FitVids jQuery plugin](https://github.com/davatron5000/FitVids.js).\n\n## Install\n\n```bash\nnpm install fitvids --save\n```\n\nYou can also [download the files manually](https://raw.githubusercontent.com/rosszurowski/vanilla-fitvids/master/dist/fitvids.min.js) and include them via a `<script>` tag.\n\n## Usage\n\n```javascript\nfitvids() // Bam, done.\n```\n\nThe module exports a single function. Just call it, and it'll wrap video embeds from Youtube, Vimeo, and Kickstarter in a responsive container. Other video players can be supported by passing a custom selector via [the options](#custom-players).\n\nTo wrap videos that have been added to the page dynamically, just call the function again. Fitvids is smart enough to only wrap the new videos.\n\n## Options\n\n#### Container Selector\n\nTo only wrap videos that are a child of an element, you can provide an optional selector:\n\n```javascript\nfitvids('.video-container')\n```\n\nOnly videos that are descendants of `.video-container` will be made responsive.\n\n#### Custom Players\n\nBy default, fitvids automatically wraps Youtube, Vimeo, and Kickstarter players, but if you'd like it to wrap others too, you can pass them in as selectors via the `players` property.\n\n```javascript\nfitvids({\n  players: 'iframe[src*=\"example.com\"]'\n})\n```\n\nOr several at once:\n\n```javascript\nfitvids('.video-container', {\n  players: ['iframe[src*=\"example1.com\"]', 'iframe[src*=\"example2.com\"]']\n})\n```\n\n#### Ignoring Selectors\n\nIf you'd like to ignore certain videos, you can pass a selector via the `ignore` option:\n\n```javascript\nfitvids({\n  ignore: ['object']\n})\n```\n\n### Browser Support\n\nThis module supports every modern browser. It uses [ES5 Array methods](http://caniuse.com/#feat=es5) and [`querySelector`](http://caniuse.com/#feat=queryselector). If you need to use fitvids on a legacy browser, fitvids will work as long as these features are polyfilled.\n\n### Contributing\n\nFeel free to make issues or pull requests with bug reports or suggestions.\n\nWhen contributing code, you can run tests via:\n\n```\nmake test\n```\n\nTo build distributable versions of the script, run:\n\n```\nmake build\n```\n\n### License\n\n[WTFPL](http://www.wtfpl.net)\n","maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"time":{"modified":"2022-06-18T01:46:04.844Z","created":"2015-08-31T14:10:14.352Z","1.0.0":"2015-08-31T14:10:14.352Z","1.0.1":"2015-08-31T14:29:16.142Z","1.0.2":"2015-09-01T02:25:06.632Z","2.0.0":"2016-05-21T18:14:34.157Z","2.1.0":"2019-10-16T03:26:43.354Z","2.1.1":"2019-10-16T19:31:44.476Z"},"homepage":"https://github.com/rosszurowski/vanilla-fitvids#readme","keywords":["video","responsive","fluid","width","fitvids","wrapper"],"repository":{"type":"git","url":"git+https://github.com/rosszurowski/vanilla-fitvids.git"},"author":{"name":"Ross Zurowski","email":"ross@rosszurowski.com"},"bugs":{"url":"https://github.com/rosszurowski/vanilla-fitvids/issues"},"license":"WTFPL","readmeFilename":"README.md","users":{"filipve":true,"lmartins":true,"yazanrawashdeh":true,"adammacias":true}}