{"action":"created","comment":{"url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/comments/47153872","id":47153872,"diff_hunk":"@@ -2,8 +2,11 @@ var fs = require('fs'),\n     inherits = require('util').inherits,\n     path = require('path');\n \n-var CWD = path.join(__dirname, '../plugins'),\n-    THROW_CONFLICTS = true;\n+var THROW_CONFLICTS = true;\n+\n+function getPluginPath(config) {","path":"lib/plugins.js","position":8,"original_position":8,"commit_id":"bf0f83c863d03f978f887fdd399f874fc955bc88","original_commit_id":"bf0f83c863d03f978f887fdd399f874fc955bc88","user":{"login":"3y3","id":3931155,"avatar_url":"https://avatars.githubusercontent.com/u/3931155?v=3","gravatar_id":"","url":"https://api.github.com/users/3y3","html_url":"https://github.com/3y3","followers_url":"https://api.github.com/users/3y3/followers","following_url":"https://api.github.com/users/3y3/following{/other_user}","gists_url":"https://api.github.com/users/3y3/gists{/gist_id}","starred_url":"https://api.github.com/users/3y3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3y3/subscriptions","organizations_url":"https://api.github.com/users/3y3/orgs","repos_url":"https://api.github.com/users/3y3/repos","events_url":"https://api.github.com/users/3y3/events{/privacy}","received_events_url":"https://api.github.com/users/3y3/received_events","type":"User","site_admin":false},"body":"Is it possible to save `CWD` option and rewrite in init function:\r\n\r\n```js\r\nvar plugins = require('./plugins.js'); // ready to work with default parameters\r\nplugins.init(options); // override CWD\r\n```\r\n?","created_at":"2015-12-09T21:24:14Z","updated_at":"2015-12-09T21:24:14Z","html_url":"https://github.com/node-inspector/node-inspector/pull/789#discussion_r47153872","pull_request_url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/789","_links":{"self":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/comments/47153872"},"html":{"href":"https://github.com/node-inspector/node-inspector/pull/789#discussion_r47153872"},"pull_request":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/789"}}},"pull_request":{"url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/789","id":53066258,"html_url":"https://github.com/node-inspector/node-inspector/pull/789","diff_url":"https://github.com/node-inspector/node-inspector/pull/789.diff","patch_url":"https://github.com/node-inspector/node-inspector/pull/789.patch","issue_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/789","number":789,"state":"open","locked":false,"title":"Minor Plugin API Extensions","user":{"login":"eplawless","id":27268,"avatar_url":"https://avatars.githubusercontent.com/u/27268?v=3","gravatar_id":"","url":"https://api.github.com/users/eplawless","html_url":"https://github.com/eplawless","followers_url":"https://api.github.com/users/eplawless/followers","following_url":"https://api.github.com/users/eplawless/following{/other_user}","gists_url":"https://api.github.com/users/eplawless/gists{/gist_id}","starred_url":"https://api.github.com/users/eplawless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eplawless/subscriptions","organizations_url":"https://api.github.com/users/eplawless/orgs","repos_url":"https://api.github.com/users/eplawless/repos","events_url":"https://api.github.com/users/eplawless/events{/privacy}","received_events_url":"https://api.github.com/users/eplawless/received_events","type":"User","site_admin":false},"body":"#### Overview\r\n\r\nHello! I'd like to make a few minor changes to the plugin API which will make it easier to keep the vanilla node-inspector source tree untouched (and up to date) and ship plugins alongside.\r\n\r\nI'm using node-inspector plus some custom plugins to provide JS debugging support for the Netflix application on TVs and game consoles.\r\n\r\nThis change would make it so I can stop shipping a forked version :)\r\n\r\n#### Proposed Changes\r\n* Added --plugin-path argument for specifying root plugin path when plugins are enabled.\r\n* Added plugin/manifest.json \"override\" property to allow finer-grained control of inspector.json.","created_at":"2015-12-09T01:45:58Z","updated_at":"2015-12-09T21:24:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c70fde14dd90cbb2a4068ae4d0b80ff54aa2208c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/789/commits","review_comments_url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/789/comments","review_comment_url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/789/comments","statuses_url":"https://api.github.com/repos/node-inspector/node-inspector/statuses/bf0f83c863d03f978f887fdd399f874fc955bc88","head":{"label":"eplawless:plugin-path-and-overrides","ref":"plugin-path-and-overrides","sha":"bf0f83c863d03f978f887fdd399f874fc955bc88","user":{"login":"eplawless","id":27268,"avatar_url":"https://avatars.githubusercontent.com/u/27268?v=3","gravatar_id":"","url":"https://api.github.com/users/eplawless","html_url":"https://github.com/eplawless","followers_url":"https://api.github.com/users/eplawless/followers","following_url":"https://api.github.com/users/eplawless/following{/other_user}","gists_url":"https://api.github.com/users/eplawless/gists{/gist_id}","starred_url":"https://api.github.com/users/eplawless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eplawless/subscriptions","organizations_url":"https://api.github.com/users/eplawless/orgs","repos_url":"https://api.github.com/users/eplawless/repos","events_url":"https://api.github.com/users/eplawless/events{/privacy}","received_events_url":"https://api.github.com/users/eplawless/received_events","type":"User","site_admin":false},"repo":{"id":47660602,"name":"node-inspector","full_name":"eplawless/node-inspector","owner":{"login":"eplawless","id":27268,"avatar_url":"https://avatars.githubusercontent.com/u/27268?v=3","gravatar_id":"","url":"https://api.github.com/users/eplawless","html_url":"https://github.com/eplawless","followers_url":"https://api.github.com/users/eplawless/followers","following_url":"https://api.github.com/users/eplawless/following{/other_user}","gists_url":"https://api.github.com/users/eplawless/gists{/gist_id}","starred_url":"https://api.github.com/users/eplawless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eplawless/subscriptions","organizations_url":"https://api.github.com/users/eplawless/orgs","repos_url":"https://api.github.com/users/eplawless/repos","events_url":"https://api.github.com/users/eplawless/events{/privacy}","received_events_url":"https://api.github.com/users/eplawless/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eplawless/node-inspector","description":"Node.js debugger based on Blink Developer Tools","fork":true,"url":"https://api.github.com/repos/eplawless/node-inspector","forks_url":"https://api.github.com/repos/eplawless/node-inspector/forks","keys_url":"https://api.github.com/repos/eplawless/node-inspector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eplawless/node-inspector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eplawless/node-inspector/teams","hooks_url":"https://api.github.com/repos/eplawless/node-inspector/hooks","issue_events_url":"https://api.github.com/repos/eplawless/node-inspector/issues/events{/number}","events_url":"https://api.github.com/repos/eplawless/node-inspector/events","assignees_url":"https://api.github.com/repos/eplawless/node-inspector/assignees{/user}","branches_url":"https://api.github.com/repos/eplawless/node-inspector/branches{/branch}","tags_url":"https://api.github.com/repos/eplawless/node-inspector/tags","blobs_url":"https://api.github.com/repos/eplawless/node-inspector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eplawless/node-inspector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eplawless/node-inspector/git/refs{/sha}","trees_url":"https://api.github.com/repos/eplawless/node-inspector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eplawless/node-inspector/statuses/{sha}","languages_url":"https://api.github.com/repos/eplawless/node-inspector/languages","stargazers_url":"https://api.github.com/repos/eplawless/node-inspector/stargazers","contributors_url":"https://api.github.com/repos/eplawless/node-inspector/contributors","subscribers_url":"https://api.github.com/repos/eplawless/node-inspector/subscribers","subscription_url":"https://api.github.com/repos/eplawless/node-inspector/subscription","commits_url":"https://api.github.com/repos/eplawless/node-inspector/commits{/sha}","git_commits_url":"https://api.github.com/repos/eplawless/node-inspector/git/commits{/sha}","comments_url":"https://api.github.com/repos/eplawless/node-inspector/comments{/number}","issue_comment_url":"https://api.github.com/repos/eplawless/node-inspector/issues/comments{/number}","contents_url":"https://api.github.com/repos/eplawless/node-inspector/contents/{+path}","compare_url":"https://api.github.com/repos/eplawless/node-inspector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eplawless/node-inspector/merges","archive_url":"https://api.github.com/repos/eplawless/node-inspector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eplawless/node-inspector/downloads","issues_url":"https://api.github.com/repos/eplawless/node-inspector/issues{/number}","pulls_url":"https://api.github.com/repos/eplawless/node-inspector/pulls{/number}","milestones_url":"https://api.github.com/repos/eplawless/node-inspector/milestones{/number}","notifications_url":"https://api.github.com/repos/eplawless/node-inspector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eplawless/node-inspector/labels{/name}","releases_url":"https://api.github.com/repos/eplawless/node-inspector/releases{/id}","created_at":"2015-12-09T01:27:53Z","updated_at":"2015-12-09T01:27:56Z","pushed_at":"2015-12-09T01:36:37Z","git_url":"git://github.com/eplawless/node-inspector.git","ssh_url":"git@github.com:eplawless/node-inspector.git","clone_url":"https://github.com/eplawless/node-inspector.git","svn_url":"https://github.com/eplawless/node-inspector","homepage":"","size":6156,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"node-inspector:master","ref":"master","sha":"fbb63c66ef915379ce09c7f5afcf6f9bcaccc12e","user":{"login":"node-inspector","id":4449877,"avatar_url":"https://avatars.githubusercontent.com/u/4449877?v=3","gravatar_id":"","url":"https://api.github.com/users/node-inspector","html_url":"https://github.com/node-inspector","followers_url":"https://api.github.com/users/node-inspector/followers","following_url":"https://api.github.com/users/node-inspector/following{/other_user}","gists_url":"https://api.github.com/users/node-inspector/gists{/gist_id}","starred_url":"https://api.github.com/users/node-inspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/node-inspector/subscriptions","organizations_url":"https://api.github.com/users/node-inspector/orgs","repos_url":"https://api.github.com/users/node-inspector/repos","events_url":"https://api.github.com/users/node-inspector/events{/privacy}","received_events_url":"https://api.github.com/users/node-inspector/received_events","type":"Organization","site_admin":false},"repo":{"id":781028,"name":"node-inspector","full_name":"node-inspector/node-inspector","owner":{"login":"node-inspector","id":4449877,"avatar_url":"https://avatars.githubusercontent.com/u/4449877?v=3","gravatar_id":"","url":"https://api.github.com/users/node-inspector","html_url":"https://github.com/node-inspector","followers_url":"https://api.github.com/users/node-inspector/followers","following_url":"https://api.github.com/users/node-inspector/following{/other_user}","gists_url":"https://api.github.com/users/node-inspector/gists{/gist_id}","starred_url":"https://api.github.com/users/node-inspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/node-inspector/subscriptions","organizations_url":"https://api.github.com/users/node-inspector/orgs","repos_url":"https://api.github.com/users/node-inspector/repos","events_url":"https://api.github.com/users/node-inspector/events{/privacy}","received_events_url":"https://api.github.com/users/node-inspector/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/node-inspector/node-inspector","description":"Node.js debugger based on Blink Developer Tools","fork":false,"url":"https://api.github.com/repos/node-inspector/node-inspector","forks_url":"https://api.github.com/repos/node-inspector/node-inspector/forks","keys_url":"https://api.github.com/repos/node-inspector/node-inspector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/node-inspector/node-inspector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/node-inspector/node-inspector/teams","hooks_url":"https://api.github.com/repos/node-inspector/node-inspector/hooks","issue_events_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/events{/number}","events_url":"https://api.github.com/repos/node-inspector/node-inspector/events","assignees_url":"https://api.github.com/repos/node-inspector/node-inspector/assignees{/user}","branches_url":"https://api.github.com/repos/node-inspector/node-inspector/branches{/branch}","tags_url":"https://api.github.com/repos/node-inspector/node-inspector/tags","blobs_url":"https://api.github.com/repos/node-inspector/node-inspector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/node-inspector/node-inspector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/node-inspector/node-inspector/git/refs{/sha}","trees_url":"https://api.github.com/repos/node-inspector/node-inspector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/node-inspector/node-inspector/statuses/{sha}","languages_url":"https://api.github.com/repos/node-inspector/node-inspector/languages","stargazers_url":"https://api.github.com/repos/node-inspector/node-inspector/stargazers","contributors_url":"https://api.github.com/repos/node-inspector/node-inspector/contributors","subscribers_url":"https://api.github.com/repos/node-inspector/node-inspector/subscribers","subscription_url":"https://api.github.com/repos/node-inspector/node-inspector/subscription","commits_url":"https://api.github.com/repos/node-inspector/node-inspector/commits{/sha}","git_commits_url":"https://api.github.com/repos/node-inspector/node-inspector/git/commits{/sha}","comments_url":"https://api.github.com/repos/node-inspector/node-inspector/comments{/number}","issue_comment_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/comments{/number}","contents_url":"https://api.github.com/repos/node-inspector/node-inspector/contents/{+path}","compare_url":"https://api.github.com/repos/node-inspector/node-inspector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/node-inspector/node-inspector/merges","archive_url":"https://api.github.com/repos/node-inspector/node-inspector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/node-inspector/node-inspector/downloads","issues_url":"https://api.github.com/repos/node-inspector/node-inspector/issues{/number}","pulls_url":"https://api.github.com/repos/node-inspector/node-inspector/pulls{/number}","milestones_url":"https://api.github.com/repos/node-inspector/node-inspector/milestones{/number}","notifications_url":"https://api.github.com/repos/node-inspector/node-inspector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/node-inspector/node-inspector/labels{/name}","releases_url":"https://api.github.com/repos/node-inspector/node-inspector/releases{/id}","created_at":"2010-07-17T23:20:19Z","updated_at":"2015-12-09T20:24:31Z","pushed_at":"2015-12-09T01:45:58Z","git_url":"git://github.com/node-inspector/node-inspector.git","ssh_url":"git@github.com:node-inspector/node-inspector.git","clone_url":"https://github.com/node-inspector/node-inspector.git","svn_url":"https://github.com/node-inspector/node-inspector","homepage":"","size":8232,"stargazers_count":8409,"watchers_count":8409,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":535,"mirror_url":null,"open_issues_count":108,"forks":535,"open_issues":108,"watchers":8409,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/789"},"html":{"href":"https://github.com/node-inspector/node-inspector/pull/789"},"issue":{"href":"https://api.github.com/repos/node-inspector/node-inspector/issues/789"},"comments":{"href":"https://api.github.com/repos/node-inspector/node-inspector/issues/789/comments"},"review_comments":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/789/comments"},"review_comment":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/789/commits"},"statuses":{"href":"https://api.github.com/repos/node-inspector/node-inspector/statuses/bf0f83c863d03f978f887fdd399f874fc955bc88"}}}}