{"action":"created","issue":{"url":"https://api.github.com/repos/the-darc/br-validations/issues/5","labels_url":"https://api.github.com/repos/the-darc/br-validations/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/the-darc/br-validations/issues/5/comments","events_url":"https://api.github.com/repos/the-darc/br-validations/issues/5/events","html_url":"https://github.com/the-darc/br-validations/issues/5","id":61875037,"number":5,"title":"change how environment is detected","user":{"login":"assisrafael","id":1799825,"avatar_url":"https://avatars.githubusercontent.com/u/1799825?v=3","gravatar_id":"","url":"https://api.github.com/users/assisrafael","html_url":"https://github.com/assisrafael","followers_url":"https://api.github.com/users/assisrafael/followers","following_url":"https://api.github.com/users/assisrafael/following{/other_user}","gists_url":"https://api.github.com/users/assisrafael/gists{/gist_id}","starred_url":"https://api.github.com/users/assisrafael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assisrafael/subscriptions","organizations_url":"https://api.github.com/users/assisrafael/orgs","repos_url":"https://api.github.com/users/assisrafael/repos","events_url":"https://api.github.com/users/assisrafael/events{/privacy}","received_events_url":"https://api.github.com/users/assisrafael/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/the-darc/br-validations/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-15T17:58:35Z","updated_at":"2015-05-11T08:21:49Z","closed_at":"2015-05-11T08:21:49Z","body":"npm recomends the following snippet to detect the node environment:\r\n```javascript\r\nif (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n  // create the plugin with a CommonJS version\r\n} else {\r\n  // create the plugin with the global object\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/the-darc/br-validations/issues/comments/100812631","html_url":"https://github.com/the-darc/br-validations/issues/5#issuecomment-100812631","issue_url":"https://api.github.com/repos/the-darc/br-validations/issues/5","id":100812631,"user":{"login":"assisrafael","id":1799825,"avatar_url":"https://avatars.githubusercontent.com/u/1799825?v=3","gravatar_id":"","url":"https://api.github.com/users/assisrafael","html_url":"https://github.com/assisrafael","followers_url":"https://api.github.com/users/assisrafael/followers","following_url":"https://api.github.com/users/assisrafael/following{/other_user}","gists_url":"https://api.github.com/users/assisrafael/gists{/gist_id}","starred_url":"https://api.github.com/users/assisrafael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assisrafael/subscriptions","organizations_url":"https://api.github.com/users/assisrafael/orgs","repos_url":"https://api.github.com/users/assisrafael/repos","events_url":"https://api.github.com/users/assisrafael/events{/privacy}","received_events_url":"https://api.github.com/users/assisrafael/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T08:21:49Z","updated_at":"2015-05-11T08:21:49Z","body":"Fixed in 4ad6db03f0ebcf60bec99bbce6582e43d5353e1b"}}