{"action":"closed","issue":{"url":"https://api.github.com/repos/quarkli/gatherhub/issues/22","labels_url":"https://api.github.com/repos/quarkli/gatherhub/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/quarkli/gatherhub/issues/22/comments","events_url":"https://api.github.com/repos/quarkli/gatherhub/issues/22/events","html_url":"https://github.com/quarkli/gatherhub/issues/22","id":116689826,"number":22,"title":"Some questions about node.js workspace and package manager.","user":{"login":"Phenix2014","id":6396390,"avatar_url":"https://avatars.githubusercontent.com/u/6396390?v=3","gravatar_id":"","url":"https://api.github.com/users/Phenix2014","html_url":"https://github.com/Phenix2014","followers_url":"https://api.github.com/users/Phenix2014/followers","following_url":"https://api.github.com/users/Phenix2014/following{/other_user}","gists_url":"https://api.github.com/users/Phenix2014/gists{/gist_id}","starred_url":"https://api.github.com/users/Phenix2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phenix2014/subscriptions","organizations_url":"https://api.github.com/users/Phenix2014/orgs","repos_url":"https://api.github.com/users/Phenix2014/repos","events_url":"https://api.github.com/users/Phenix2014/events{/privacy}","received_events_url":"https://api.github.com/users/Phenix2014/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/quarkli/gatherhub/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"Phenix2014","id":6396390,"avatar_url":"https://avatars.githubusercontent.com/u/6396390?v=3","gravatar_id":"","url":"https://api.github.com/users/Phenix2014","html_url":"https://github.com/Phenix2014","followers_url":"https://api.github.com/users/Phenix2014/followers","following_url":"https://api.github.com/users/Phenix2014/following{/other_user}","gists_url":"https://api.github.com/users/Phenix2014/gists{/gist_id}","starred_url":"https://api.github.com/users/Phenix2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phenix2014/subscriptions","organizations_url":"https://api.github.com/users/Phenix2014/orgs","repos_url":"https://api.github.com/users/Phenix2014/repos","events_url":"https://api.github.com/users/Phenix2014/events{/privacy}","received_events_url":"https://api.github.com/users/Phenix2014/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-13T02:50:44Z","updated_at":"2015-11-13T02:58:06Z","closed_at":"2015-11-13T02:58:06Z","body":"我一直好奇github的一些工程，原本是前端的javascript代码，但是为啥代码源文件的开头声明引用关系的时候用\r\nvar peers =require('test-web-rtc');\r\n而且还不带本地路径名，在工程目录下还找不到这个依存的文件，\r\n源文件结尾用module.exports = Peer;\r\n而且代码也没有考虑前端浏览器异步加载，文件之间的依存关系什么的。\r\n这是什么工作原理呢？\r\n\r\n"}}