{"action":"created","issue":{"url":"https://api.github.com/repos/tapio/live-server/issues/33","labels_url":"https://api.github.com/repos/tapio/live-server/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/tapio/live-server/issues/33/comments","events_url":"https://api.github.com/repos/tapio/live-server/issues/33/events","html_url":"https://github.com/tapio/live-server/pull/33","id":68927597,"number":33,"title":"Add option of providing default settings","user":{"login":"mikker","id":2819,"avatar_url":"https://avatars.githubusercontent.com/u/2819?v=3","gravatar_id":"","url":"https://api.github.com/users/mikker","html_url":"https://github.com/mikker","followers_url":"https://api.github.com/users/mikker/followers","following_url":"https://api.github.com/users/mikker/following{/other_user}","gists_url":"https://api.github.com/users/mikker/gists{/gist_id}","starred_url":"https://api.github.com/users/mikker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikker/subscriptions","organizations_url":"https://api.github.com/users/mikker/orgs","repos_url":"https://api.github.com/users/mikker/repos","events_url":"https://api.github.com/users/mikker/events{/privacy}","received_events_url":"https://api.github.com/users/mikker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-16T13:45:49Z","updated_at":"2015-07-24T08:27:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tapio/live-server/pulls/33","html_url":"https://github.com/tapio/live-server/pull/33","diff_url":"https://github.com/tapio/live-server/pull/33.diff","patch_url":"https://github.com/tapio/live-server/pull/33.patch"},"body":"If the file `~/.live-server.json` exists, use its' contents as default options.\r\n\r\neg. I never want live-server to open my browser so I have \r\n\r\n```json\r\n{\r\n  \"open\": false\r\n}\r\n```\r\n\r\nin my `~/.live-server.json`."},"comment":{"url":"https://api.github.com/repos/tapio/live-server/issues/comments/124438174","html_url":"https://github.com/tapio/live-server/pull/33#issuecomment-124438174","issue_url":"https://api.github.com/repos/tapio/live-server/issues/33","id":124438174,"user":{"login":"tapio","id":83229,"avatar_url":"https://avatars.githubusercontent.com/u/83229?v=3","gravatar_id":"","url":"https://api.github.com/users/tapio","html_url":"https://github.com/tapio","followers_url":"https://api.github.com/users/tapio/followers","following_url":"https://api.github.com/users/tapio/following{/other_user}","gists_url":"https://api.github.com/users/tapio/gists{/gist_id}","starred_url":"https://api.github.com/users/tapio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tapio/subscriptions","organizations_url":"https://api.github.com/users/tapio/orgs","repos_url":"https://api.github.com/users/tapio/repos","events_url":"https://api.github.com/users/tapio/events{/privacy}","received_events_url":"https://api.github.com/users/tapio/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T08:27:47Z","updated_at":"2015-07-24T08:27:47Z","body":"I'm a bit sad that there starts to be so many options that a configuration file is becoming useful enough to  implement. Anyway, probably the right way is something along the line jshint does in @harrytruong's link. A way to provide project-specific settings is needed in addition to global (per user), and if it's not much code, both the server root relative file and package.json can be supported. Regarding the global home directory file, is there something more portable than `process.env.HOME` we could use (no HOME on Windows AFAIK)?"}}