{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npmlog/issues/10","repository_url":"https://api.github.com/repos/npm/npmlog","labels_url":"https://api.github.com/repos/npm/npmlog/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/npm/npmlog/issues/10/comments","events_url":"https://api.github.com/repos/npm/npmlog/issues/10/events","html_url":"https://github.com/npm/npmlog/issues/10","id":38924930,"number":10,"title":"Constructor name","user":{"login":"rhalff","id":274358,"avatar_url":"https://avatars.githubusercontent.com/u/274358?v=3","gravatar_id":"","url":"https://api.github.com/users/rhalff","html_url":"https://github.com/rhalff","followers_url":"https://api.github.com/users/rhalff/followers","following_url":"https://api.github.com/users/rhalff/following{/other_user}","gists_url":"https://api.github.com/users/rhalff/gists{/gist_id}","starred_url":"https://api.github.com/users/rhalff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhalff/subscriptions","organizations_url":"https://api.github.com/users/rhalff/orgs","repos_url":"https://api.github.com/users/rhalff/repos","events_url":"https://api.github.com/users/rhalff/events{/privacy}","received_events_url":"https://api.github.com/users/rhalff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-07-28T19:40:20Z","updated_at":"2016-12-09T01:08:32Z","closed_at":null,"body":"Not really a bug, but a bit confusing:\n\n```\nvar log = exports = module.exports = new EE\n```\n\nIt would be nice if the constructor name was something like NpmLog.\n\nMissing methods are now blamed on EventEmitter.\n\n```\nvar log = require('npmlog');\nlog.debug('test');\n    ^\nTypeError: Object #<EventEmitter> has no method 'debug'\n    at Object.<anonymous> (/home/rhalff/git/fbpx-cli/test.js:3:5)\n    at Module._compile (module.js:456:26)\n    at Object.Module._extensions..js (module.js:474:10)\n    at Module.load (module.js:356:32)\n    at Function.Module._load (module.js:312:12)\n    at Function.Module.runMain (module.js:497:10)\n    at startup (node.js:119:16)\n    at node.js:902:3\n```\n"},"comment":{"url":"https://api.github.com/repos/npm/npmlog/issues/comments/265904367","html_url":"https://github.com/npm/npmlog/issues/10#issuecomment-265904367","issue_url":"https://api.github.com/repos/npm/npmlog/issues/10","id":265904367,"user":{"login":"helio-frota","id":6443576,"avatar_url":"https://avatars.githubusercontent.com/u/6443576?v=3","gravatar_id":"","url":"https://api.github.com/users/helio-frota","html_url":"https://github.com/helio-frota","followers_url":"https://api.github.com/users/helio-frota/followers","following_url":"https://api.github.com/users/helio-frota/following{/other_user}","gists_url":"https://api.github.com/users/helio-frota/gists{/gist_id}","starred_url":"https://api.github.com/users/helio-frota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helio-frota/subscriptions","organizations_url":"https://api.github.com/users/helio-frota/orgs","repos_url":"https://api.github.com/users/helio-frota/repos","events_url":"https://api.github.com/users/helio-frota/events{/privacy}","received_events_url":"https://api.github.com/users/helio-frota/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T01:08:32Z","updated_at":"2016-12-09T01:08:32Z","body":"Hi, how to reproduce this ?\r\n\r\n"}}
{"actor":{"display_login":"helio-frota"}}