{"action":"created","issue":{"url":"https://api.github.com/repos/jgautier/firmata/issues/108","labels_url":"https://api.github.com/repos/jgautier/firmata/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/jgautier/firmata/issues/108/comments","events_url":"https://api.github.com/repos/jgautier/firmata/issues/108/events","html_url":"https://github.com/jgautier/firmata/pull/108","id":130062589,"number":108,"title":"Added detection for NW.js version 0.13+","user":{"login":"cotejp","id":3246696,"avatar_url":"https://avatars.githubusercontent.com/u/3246696?v=3","gravatar_id":"","url":"https://api.github.com/users/cotejp","html_url":"https://github.com/cotejp","followers_url":"https://api.github.com/users/cotejp/followers","following_url":"https://api.github.com/users/cotejp/following{/other_user}","gists_url":"https://api.github.com/users/cotejp/gists{/gist_id}","starred_url":"https://api.github.com/users/cotejp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cotejp/subscriptions","organizations_url":"https://api.github.com/users/cotejp/orgs","repos_url":"https://api.github.com/users/cotejp/repos","events_url":"https://api.github.com/users/cotejp/events{/privacy}","received_events_url":"https://api.github.com/users/cotejp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-31T01:44:48Z","updated_at":"2016-02-02T01:19:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jgautier/firmata/pulls/108","html_url":"https://github.com/jgautier/firmata/pull/108","diff_url":"https://github.com/jgautier/firmata/pull/108.diff","patch_url":"https://github.com/jgautier/firmata/pull/108.patch"},"body":"Since v0.13, **NW.js** fully supports the `chrome.*` APIs. This includes `chrome.serial` upon which **browser-serialport** is constructed. This pull request simply detects if the **firmata** module is being run inside **NW.js** in which case it uses the **browser-serialport** module instead of the **serialport** module.\r\n\r\nSince native modules need to be specifically recompiled for **NW.js**, this makes it much easier to use the serial port in that environment."},"comment":{"url":"https://api.github.com/repos/jgautier/firmata/issues/comments/178293300","html_url":"https://github.com/jgautier/firmata/pull/108#issuecomment-178293300","issue_url":"https://api.github.com/repos/jgautier/firmata/issues/108","id":178293300,"user":{"login":"cotejp","id":3246696,"avatar_url":"https://avatars.githubusercontent.com/u/3246696?v=3","gravatar_id":"","url":"https://api.github.com/users/cotejp","html_url":"https://github.com/cotejp","followers_url":"https://api.github.com/users/cotejp/followers","following_url":"https://api.github.com/users/cotejp/following{/other_user}","gists_url":"https://api.github.com/users/cotejp/gists{/gist_id}","starred_url":"https://api.github.com/users/cotejp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cotejp/subscriptions","organizations_url":"https://api.github.com/users/cotejp/orgs","repos_url":"https://api.github.com/users/cotejp/repos","events_url":"https://api.github.com/users/cotejp/events{/privacy}","received_events_url":"https://api.github.com/users/cotejp/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T01:19:31Z","updated_at":"2016-02-02T01:19:31Z","body":"Oh, I see. Sorry about the confusion. I actually agree with you that Firmata should slowly transition to a transport-independent model. "}}