{"action":"created","comment":{"url":"https://api.github.com/repos/brightcove/videojs-errors/pulls/comments/185593745","pull_request_review_id":117014395,"id":185593745,"diff_hunk":"@@ -21,6 +21,28 @@ A plugin that displays user-friendly messages when Video.js encounters an error.\n <!-- END doctoc generated TOC please keep comment here to allow auto update -->\n \n ## Getting Started\n+**Importing via NPM/Babel/Browserify**\n+```shell\n+npm install videojs-errors\n+```\n+\n+You may need to add videojs-errors as plugin to the videojs module:\n+```js\n+import videojs from 'video.js';\n+import videojsErrors from 'videojs-errors';\n+\n+//For VideoJS 5 and below\n+videojs.plugin('errors', videojsErrors);\n+\n+//For VideoJS 6\n+videojs.registerPlugin('errors', videojsErrors);","path":"README.md","position":18,"original_position":18,"commit_id":"f4d51533d99bf47ec1bbc829c8162bdb561097e2","original_commit_id":"f4d51533d99bf47ec1bbc829c8162bdb561097e2","user":{"login":"gkatsev","id":535884,"avatar_url":"https://avatars0.githubusercontent.com/u/535884?v=4","gravatar_id":"","url":"https://api.github.com/users/gkatsev","html_url":"https://github.com/gkatsev","followers_url":"https://api.github.com/users/gkatsev/followers","following_url":"https://api.github.com/users/gkatsev/following{/other_user}","gists_url":"https://api.github.com/users/gkatsev/gists{/gist_id}","starred_url":"https://api.github.com/users/gkatsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkatsev/subscriptions","organizations_url":"https://api.github.com/users/gkatsev/orgs","repos_url":"https://api.github.com/users/gkatsev/repos","events_url":"https://api.github.com/users/gkatsev/events{/privacy}","received_events_url":"https://api.github.com/users/gkatsev/received_events","type":"User","site_admin":false},"body":"so, only the following should be needed:\r\n```\r\nimport videojs from \"video.js\";\r\nimport \"videojs-errors\";\r\n```\r\n","created_at":"2018-05-02T18:24:50Z","updated_at":"2018-05-02T18:24:50Z","html_url":"https://github.com/brightcove/videojs-errors/pull/108#discussion_r185593745","pull_request_url":"https://api.github.com/repos/brightcove/videojs-errors/pulls/108","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/brightcove/videojs-errors/pulls/comments/185593745"},"html":{"href":"https://github.com/brightcove/videojs-errors/pull/108#discussion_r185593745"},"pull_request":{"href":"https://api.github.com/repos/brightcove/videojs-errors/pulls/108"}},"in_reply_to_id":127284422},"pull_request":{"url":"https://api.github.com/repos/brightcove/videojs-errors/pulls/108","id":130061451,"html_url":"https://github.com/brightcove/videojs-errors/pull/108","diff_url":"https://github.com/brightcove/videojs-errors/pull/108.diff","patch_url":"https://github.com/brightcove/videojs-errors/pull/108.patch","issue_url":"https://api.github.com/repos/brightcove/videojs-errors/issues/108","number":108,"state":"open","locked":false,"title":"Adds usage via npm","user":{"login":"wetoolaguer","id":3773866,"avatar_url":"https://avatars3.githubusercontent.com/u/3773866?v=4","gravatar_id":"","url":"https://api.github.com/users/wetoolaguer","html_url":"https://github.com/wetoolaguer","followers_url":"https://api.github.com/users/wetoolaguer/followers","following_url":"https://api.github.com/users/wetoolaguer/following{/other_user}","gists_url":"https://api.github.com/users/wetoolaguer/gists{/gist_id}","starred_url":"https://api.github.com/users/wetoolaguer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wetoolaguer/subscriptions","organizations_url":"https://api.github.com/users/wetoolaguer/orgs","repos_url":"https://api.github.com/users/wetoolaguer/repos","events_url":"https://api.github.com/users/wetoolaguer/events{/privacy}","received_events_url":"https://api.github.com/users/wetoolaguer/received_events","type":"User","site_admin":false},"body":"## Description\r\nUpdates Readme with npm usage.","created_at":"2017-07-12T06:08:36Z","updated_at":"2018-05-02T18:24:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cebf9a60b2d7502dee2d196d3af902e83216603","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/brightcove/videojs-errors/pulls/108/commits","review_comments_url":"https://api.github.com/repos/brightcove/videojs-errors/pulls/108/comments","review_comment_url":"https://api.github.com/repos/brightcove/videojs-errors/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brightcove/videojs-errors/issues/108/comments","statuses_url":"https://api.github.com/repos/brightcove/videojs-errors/statuses/f4d51533d99bf47ec1bbc829c8162bdb561097e2","head":{"label":"wetoolaguer:update/readme","ref":"update/readme","sha":"f4d51533d99bf47ec1bbc829c8162bdb561097e2","user":{"login":"wetoolaguer","id":3773866,"avatar_url":"https://avatars3.githubusercontent.com/u/3773866?v=4","gravatar_id":"","url":"https://api.github.com/users/wetoolaguer","html_url":"https://github.com/wetoolaguer","followers_url":"https://api.github.com/users/wetoolaguer/followers","following_url":"https://api.github.com/users/wetoolaguer/following{/other_user}","gists_url":"https://api.github.com/users/wetoolaguer/gists{/gist_id}","starred_url":"https://api.github.com/users/wetoolaguer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wetoolaguer/subscriptions","organizations_url":"https://api.github.com/users/wetoolaguer/orgs","repos_url":"https://api.github.com/users/wetoolaguer/repos","events_url":"https://api.github.com/users/wetoolaguer/events{/privacy}","received_events_url":"https://api.github.com/users/wetoolaguer/received_events","type":"User","site_admin":false},"repo":{"id":96969029,"name":"videojs-errors","full_name":"wetoolaguer/videojs-errors","owner":{"login":"wetoolaguer","id":3773866,"avatar_url":"https://avatars3.githubusercontent.com/u/3773866?v=4","gravatar_id":"","url":"https://api.github.com/users/wetoolaguer","html_url":"https://github.com/wetoolaguer","followers_url":"https://api.github.com/users/wetoolaguer/followers","following_url":"https://api.github.com/users/wetoolaguer/following{/other_user}","gists_url":"https://api.github.com/users/wetoolaguer/gists{/gist_id}","starred_url":"https://api.github.com/users/wetoolaguer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wetoolaguer/subscriptions","organizations_url":"https://api.github.com/users/wetoolaguer/orgs","repos_url":"https://api.github.com/users/wetoolaguer/repos","events_url":"https://api.github.com/users/wetoolaguer/events{/privacy}","received_events_url":"https://api.github.com/users/wetoolaguer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wetoolaguer/videojs-errors","description":"A video.js plugin that displays error messages to video viewers.","fork":true,"url":"https://api.github.com/repos/wetoolaguer/videojs-errors","forks_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/forks","keys_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/teams","hooks_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/hooks","issue_events_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/issues/events{/number}","events_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/events","assignees_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/assignees{/user}","branches_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/branches{/branch}","tags_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/tags","blobs_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/git/refs{/sha}","trees_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/statuses/{sha}","languages_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/languages","stargazers_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/stargazers","contributors_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/contributors","subscribers_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/subscribers","subscription_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/subscription","commits_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/commits{/sha}","git_commits_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/git/commits{/sha}","comments_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/comments{/number}","issue_comment_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/issues/comments{/number}","contents_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/contents/{+path}","compare_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/merges","archive_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/downloads","issues_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/issues{/number}","pulls_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/pulls{/number}","milestones_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/milestones{/number}","notifications_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/labels{/name}","releases_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/releases{/id}","deployments_url":"https://api.github.com/repos/wetoolaguer/videojs-errors/deployments","created_at":"2017-07-12T05:34:47Z","updated_at":"2017-07-12T05:34:49Z","pushed_at":"2017-07-13T05:21:55Z","git_url":"git://github.com/wetoolaguer/videojs-errors.git","ssh_url":"git@github.com:wetoolaguer/videojs-errors.git","clone_url":"https://github.com/wetoolaguer/videojs-errors.git","svn_url":"https://github.com/wetoolaguer/videojs-errors","homepage":null,"size":807,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"brightcove:master","ref":"master","sha":"3cb9c1e558fa43f564ae038014cafba9ebdaf120","user":{"login":"brightcove","id":277032,"avatar_url":"https://avatars0.githubusercontent.com/u/277032?v=4","gravatar_id":"","url":"https://api.github.com/users/brightcove","html_url":"https://github.com/brightcove","followers_url":"https://api.github.com/users/brightcove/followers","following_url":"https://api.github.com/users/brightcove/following{/other_user}","gists_url":"https://api.github.com/users/brightcove/gists{/gist_id}","starred_url":"https://api.github.com/users/brightcove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brightcove/subscriptions","organizations_url":"https://api.github.com/users/brightcove/orgs","repos_url":"https://api.github.com/users/brightcove/repos","events_url":"https://api.github.com/users/brightcove/events{/privacy}","received_events_url":"https://api.github.com/users/brightcove/received_events","type":"Organization","site_admin":false},"repo":{"id":8689507,"name":"videojs-errors","full_name":"brightcove/videojs-errors","owner":{"login":"brightcove","id":277032,"avatar_url":"https://avatars0.githubusercontent.com/u/277032?v=4","gravatar_id":"","url":"https://api.github.com/users/brightcove","html_url":"https://github.com/brightcove","followers_url":"https://api.github.com/users/brightcove/followers","following_url":"https://api.github.com/users/brightcove/following{/other_user}","gists_url":"https://api.github.com/users/brightcove/gists{/gist_id}","starred_url":"https://api.github.com/users/brightcove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brightcove/subscriptions","organizations_url":"https://api.github.com/users/brightcove/orgs","repos_url":"https://api.github.com/users/brightcove/repos","events_url":"https://api.github.com/users/brightcove/events{/privacy}","received_events_url":"https://api.github.com/users/brightcove/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brightcove/videojs-errors","description":"A video.js plugin that displays error messages to video viewers.","fork":false,"url":"https://api.github.com/repos/brightcove/videojs-errors","forks_url":"https://api.github.com/repos/brightcove/videojs-errors/forks","keys_url":"https://api.github.com/repos/brightcove/videojs-errors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brightcove/videojs-errors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brightcove/videojs-errors/teams","hooks_url":"https://api.github.com/repos/brightcove/videojs-errors/hooks","issue_events_url":"https://api.github.com/repos/brightcove/videojs-errors/issues/events{/number}","events_url":"https://api.github.com/repos/brightcove/videojs-errors/events","assignees_url":"https://api.github.com/repos/brightcove/videojs-errors/assignees{/user}","branches_url":"https://api.github.com/repos/brightcove/videojs-errors/branches{/branch}","tags_url":"https://api.github.com/repos/brightcove/videojs-errors/tags","blobs_url":"https://api.github.com/repos/brightcove/videojs-errors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brightcove/videojs-errors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brightcove/videojs-errors/git/refs{/sha}","trees_url":"https://api.github.com/repos/brightcove/videojs-errors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brightcove/videojs-errors/statuses/{sha}","languages_url":"https://api.github.com/repos/brightcove/videojs-errors/languages","stargazers_url":"https://api.github.com/repos/brightcove/videojs-errors/stargazers","contributors_url":"https://api.github.com/repos/brightcove/videojs-errors/contributors","subscribers_url":"https://api.github.com/repos/brightcove/videojs-errors/subscribers","subscription_url":"https://api.github.com/repos/brightcove/videojs-errors/subscription","commits_url":"https://api.github.com/repos/brightcove/videojs-errors/commits{/sha}","git_commits_url":"https://api.github.com/repos/brightcove/videojs-errors/git/commits{/sha}","comments_url":"https://api.github.com/repos/brightcove/videojs-errors/comments{/number}","issue_comment_url":"https://api.github.com/repos/brightcove/videojs-errors/issues/comments{/number}","contents_url":"https://api.github.com/repos/brightcove/videojs-errors/contents/{+path}","compare_url":"https://api.github.com/repos/brightcove/videojs-errors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brightcove/videojs-errors/merges","archive_url":"https://api.github.com/repos/brightcove/videojs-errors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brightcove/videojs-errors/downloads","issues_url":"https://api.github.com/repos/brightcove/videojs-errors/issues{/number}","pulls_url":"https://api.github.com/repos/brightcove/videojs-errors/pulls{/number}","milestones_url":"https://api.github.com/repos/brightcove/videojs-errors/milestones{/number}","notifications_url":"https://api.github.com/repos/brightcove/videojs-errors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brightcove/videojs-errors/labels{/name}","releases_url":"https://api.github.com/repos/brightcove/videojs-errors/releases{/id}","deployments_url":"https://api.github.com/repos/brightcove/videojs-errors/deployments","created_at":"2013-03-10T18:31:15Z","updated_at":"2018-05-02T18:20:02Z","pushed_at":"2018-05-02T18:20:51Z","git_url":"git://github.com/brightcove/videojs-errors.git","ssh_url":"git@github.com:brightcove/videojs-errors.git","clone_url":"https://github.com/brightcove/videojs-errors.git","svn_url":"https://github.com/brightcove/videojs-errors","homepage":null,"size":868,"stargazers_count":38,"watchers_count":38,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":26,"open_issues":10,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brightcove/videojs-errors/pulls/108"},"html":{"href":"https://github.com/brightcove/videojs-errors/pull/108"},"issue":{"href":"https://api.github.com/repos/brightcove/videojs-errors/issues/108"},"comments":{"href":"https://api.github.com/repos/brightcove/videojs-errors/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/brightcove/videojs-errors/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/brightcove/videojs-errors/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brightcove/videojs-errors/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/brightcove/videojs-errors/statuses/f4d51533d99bf47ec1bbc829c8162bdb561097e2"}},"author_association":"NONE"}}
{"actor":{"display_login":"gkatsev"}}