{"action":"closed","issue":{"url":"https://api.github.com/repos/labset/fileconfig/issues/2","labels_url":"https://api.github.com/repos/labset/fileconfig/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/labset/fileconfig/issues/2/comments","events_url":"https://api.github.com/repos/labset/fileconfig/issues/2/events","html_url":"https://github.com/labset/fileconfig/issues/2","id":67074503,"number":2,"title":"hasnæ wants fileconfig to be a global package","user":{"login":"hasnaer","id":8287312,"avatar_url":"https://avatars.githubusercontent.com/u/8287312?v=3","gravatar_id":"","url":"https://api.github.com/users/hasnaer","html_url":"https://github.com/hasnaer","followers_url":"https://api.github.com/users/hasnaer/followers","following_url":"https://api.github.com/users/hasnaer/following{/other_user}","gists_url":"https://api.github.com/users/hasnaer/gists{/gist_id}","starred_url":"https://api.github.com/users/hasnaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasnaer/subscriptions","organizations_url":"https://api.github.com/users/hasnaer/orgs","repos_url":"https://api.github.com/users/hasnaer/repos","events_url":"https://api.github.com/users/hasnaer/events{/privacy}","received_events_url":"https://api.github.com/users/hasnaer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/labset/fileconfig/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-08T08:12:34Z","updated_at":"2015-04-08T16:06:23Z","closed_at":"2015-04-08T16:06:23Z","body":"add something like\r\n\r\n```javascript\r\nfunction FileConfig(path) { ... };\r\nexports.create = function (path) { return new FileConfig(path) ; }\r\nexports.gobal  = function () {\r\n  return new FileConfig(process.env.NODE_FILECONFIG_DIR);\r\n}\r\n```\r\nso I can do this once and for all\r\n\r\n```\r\nnpm install fileconfig -g\r\necho \"export NODE_FILECONFIG_DIR=$1\" >> ~/.profile\r\nsource ~/.profile\r\n```\r\nand something like this in all my experiments, and make it easy to ship default config files as well.\r\n```javascript\r\nvar config = require('fileconfig').global();\r\n```\r\n\r\nI am that lazy"}}