{"_id":"@democracyos/video-url-inspector","_rev":"4-91b3de836d79dd4b9e4226d195d39389","name":"@democracyos/video-url-inspector","description":"Everything you can know about a video URL - like provider, id, embed code or iframe source","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@democracyos/video-url-inspector","version":"1.0.1","description":"Everything you can know about a video URL - like provider, id, embed code or iframe source","main":"index.js","directories":{"test":"tests"},"devDependencies":{"chai":"^1.9.2","gulp":"^3.8.8","gulp-mocha":"^1.1.1","gulp-browserify":"^0.5.0","gulp-rename":"^1.2.0","uglifyify":"^2.5.0"},"scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git+https://github.com/bdadam/video-url-inspector.git"},"keywords":["video","url","embed","youtube","vimeo","dailymotion","inspector","cloud"],"author":{"name":"Adam Beres-Deak","email":"me@bdadam.com"},"license":"MIT","bugs":{"url":"https://github.com/bdadam/video-url-inspector/issues"},"homepage":"https://github.com/bdadam/video-url-inspector","gitHead":"cb20844e8651300f3f5865d83d908f1215ba5c38","_id":"@democracyos/video-url-inspector@1.0.1","_shasum":"ffd9b55901b6a53e7c4f081eb0df05801c78ad9f","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.1","_npmUser":{"name":"democracyos","email":"guido@democracyos.org"},"dist":{"shasum":"ffd9b55901b6a53e7c4f081eb0df05801c78ad9f","tarball":"https://registry.npmjs.org/@democracyos/video-url-inspector/-/video-url-inspector-1.0.1.tgz","integrity":"sha512-ptymAiJ7182Oxap2xZ47H2AqxNbaeKYbPcyNAGUSb1FOk7O1aBIq4sNjdKI1h3aEZ84xPNiV1o2gZGFrLgqpaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDome9vBFItq83movqZmvCoOrlUQ2YfOfmqhSiDz/6iwgIhAKcQ3VxZB4TtPTWI4okeqZtZzyYWGvWjege/tlYbDT+m"}]},"maintainers":[{"name":"democracyos","email":"guido@democracyos.org"}]}},"readme":"video-url-inspector\n===================\n\nEverything about video URLs (Youtube, Vimeo or Dailymotion - more are coming)\n\n## Installation\n\n`npm install --save video-url-inspector`\n\nor\n\n`bower install video-url-inspector`\n\n\n## Usage with CommonJS modules (like ind NodeJS or Browserify)\n\n```JavaScript\nvar inspect = require('video-url-inspector');\n\nvar video = inspect('https://www.youtube.com/watch?v=kl1LY8obJWs');\n\nconsole.log(video);\n/*\n\tOutput:\n\n\t{\n\t    \"hoster\": \"youtube\",\n\t    \"remoteId\": \"kl1LY8obJWs\",\n\t    \"canonicalUrl\": \"http://www.youtube.com/watch?v=kl1LY8obJWs\",\n\t    \"embedUrl\": \"http://www.youtube.com/embed/kl1LY8obJWs\",\n\t    \"thumbnails\": [{\n\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/0.jpg\",\n\t        \"width\": 480,\n\t        \"height\": 360\n\t    }, {\n\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/1.jpg\",\n\t        \"width\": 120,\n\t        \"height\": 90\n\t    }, {\n\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/2.jpg\",\n\t        \"width\": 120,\n\t        \"height\": 90\n\t    }, {\n\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/3.jpg\",\n\t        \"width\": 120,\n\t        \"height\": 90\n\t    }, {\n\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/hqdefault.jpg\",\n\t        \"width\": 480,\n\t        \"height\": 360\n\t    }, {\n\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/mqdefault.jpg\",\n\t        \"width\": 320,\n\t        \"height\": 180\n\t    }, {\n\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/maxresdefault.jpg\",\n\t        \"hires\": true\n\t    }]\n\t}\n\n*/\n```\n\n## Usage with AMD (like RequireJS)\n\n```JavaScript\nrequire(['./videoUrlInspector'], function(inspect) {\n\tvar video = inspect('https://www.youtube.com/watch?v=kl1LY8obJWs');\n\tconsole.log(video);\n\n\t/*\n\t\tOutput:\n\n\t\t{\n\t\t    \"hoster\": \"youtube\",\n\t\t    \"remoteId\": \"kl1LY8obJWs\",\n\t\t    \"canonicalUrl\": \"http://www.youtube.com/watch?v=kl1LY8obJWs\",\n\t\t    \"embedUrl\": \"http://www.youtube.com/embed/kl1LY8obJWs\",\n\t\t    \"thumbnails\": [{\n\t\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/0.jpg\",\n\t\t        \"width\": 480,\n\t\t        \"height\": 360\n\t\t    }, {\n\t\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/1.jpg\",\n\t\t        \"width\": 120,\n\t\t        \"height\": 90\n\t\t    }, {\n\t\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/2.jpg\",\n\t\t        \"width\": 120,\n\t\t        \"height\": 90\n\t\t    }, {\n\t\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/3.jpg\",\n\t\t        \"width\": 120,\n\t\t        \"height\": 90\n\t\t    }, {\n\t\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/hqdefault.jpg\",\n\t\t        \"width\": 480,\n\t\t        \"height\": 360\n\t\t    }, {\n\t\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/mqdefault.jpg\",\n\t\t        \"width\": 320,\n\t\t        \"height\": 180\n\t\t    }, {\n\t\t        \"url\": \"http://img.youtube.com/vi/kl1LY8obJWs/maxresdefault.jpg\",\n\t\t        \"hires\": true\n\t\t    }]\n\t\t}\n\t*/\n});\n\n```","maintainers":[{"name":"democracyos","email":"guido@democracyos.org"},{"name":"mjlescano","email":"matiasj.lescano@gmail.com"}],"time":{"modified":"2022-06-12T17:00:35.209Z","created":"2015-05-27T16:38:34.787Z","1.0.1":"2015-05-27T16:38:34.787Z"},"homepage":"https://github.com/bdadam/video-url-inspector","keywords":["video","url","embed","youtube","vimeo","dailymotion","inspector","cloud"],"repository":{"type":"git","url":"git+https://github.com/bdadam/video-url-inspector.git"},"author":{"name":"Adam Beres-Deak","email":"me@bdadam.com"},"bugs":{"url":"https://github.com/bdadam/video-url-inspector/issues"},"license":"MIT","readmeFilename":"README.md"}