{"_id":"s-conf","_rev":"5-2a24f5b2243d74ef24cc8ed87b0f2c8d","name":"s-conf","description":"Service configuration based on JSON file","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"s-conf","version":"0.0.0","description":"Service configuration based on JSON file","main":"index.js","repository":{"type":"git","url":"git://github.com/fgascon/s-conf.git"},"keywords":["configuration","service","daemon"],"author":{"name":"fgascon"},"license":"MIT","bugs":{"url":"https://github.com/fgascon/s-conf/issues"},"homepage":"https://github.com/fgascon/s-conf","_id":"s-conf@0.0.0","dist":{"shasum":"d5b7aa55dbeed33b8ecfb87cc471bb8fb9fff43c","tarball":"https://registry.npmjs.org/s-conf/-/s-conf-0.0.0.tgz","integrity":"sha512-NmC0Gbi09WUNVaJONl/HRiFgrfPh4OoGlHMAhe8JSN6+LWGUb0dWAxJcjgtlaiV0qmX+zp+t5nmh9mhSYgPGLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC16VNUI6zj2W8LPmcqDhPzeJMj9NQagsCtbTNF8I52ywIgQaqjcioP4g/ctOwv9webk/74dBnNVmP3IgAkDV3d+Ts="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"fgascon","email":"frederic.gascon@gmail.com"},"maintainers":[{"name":"fgascon","email":"frederic.gascon@gmail.com"}]},"1.0.0":{"name":"s-conf","version":"1.0.0","description":"Service configuration based on JSON file","main":"index.js","repository":{"type":"git","url":"git://github.com/fgascon/s-conf.git"},"keywords":["configuration","service","daemon"],"author":{"name":"fgascon"},"license":"MIT","bugs":{"url":"https://github.com/fgascon/s-conf/issues"},"homepage":"https://github.com/fgascon/s-conf","dependencies":{"wrap-options":"0.0.3"},"gitHead":"94b8dd9b442fa77b76ec22768c5965610fc524c3","_id":"s-conf@1.0.0","scripts":{},"_shasum":"b257e1ebcbb751d44eb9dfaa31f720d4a197234c","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"fgascon","email":"frederic.gascon@gmail.com"},"dist":{"shasum":"b257e1ebcbb751d44eb9dfaa31f720d4a197234c","tarball":"https://registry.npmjs.org/s-conf/-/s-conf-1.0.0.tgz","integrity":"sha512-P1DrZGx3B5ZbdIR8Lgg2sIPj2iXl9CnnSLyJoOULD9QbPaIZ+QXkz28OJzLIpdZx3DAmJg8tT/3ZpmuYwa5HRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjQZY7GIfL8sEYj3lxbeq+Z2UK1AHke8IK303ywBM7pwIgJq09vzZ3Zod9n9pebOW6sxctodQnSjZhxBIVtfnRaOo="}]},"maintainers":[{"name":"fgascon","email":"frederic.gascon@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/s-conf-1.0.0.tgz_1474996436880_0.6011918596923351"}}},"readme":"s-conf\n======\n\nService configuration based on JSON file. The config file path is given as the first command line argument (argv[2]).\n\n## Usage\n\nCall your node service like this:\n```$ node index.js config.json```\n\n```js\nvar config = require('s-conf');\nvar http = require('http');\n\nhttp.createServer(function(req, res){\n  res.end(\"Hello!\");\n}).listen(config.require('http_port'), config.get('http_ip', '0.0.0.0'));\n```\n\n*http_port* is mandatory and *http_ip* is optional and default to '0.0.0.0'.\n\n## API\n\n### config.require(name)\nTo get a mandatory config parameter.\n\n### config.get(name, [defaultValue])\nTo get an optional config parameter. It will default to ```defaultValue``` if ```name``` is not present in the config file.\n\n### config.watch(changeListener)\nWatch for config reload\n\n### config.reload([callback])\nReload the config from the config file\n","maintainers":[{"name":"fgascon","email":"frederic.gascon@gmail.com"}],"time":{"modified":"2022-06-26T15:08:17.486Z","created":"2014-12-06T19:45:13.838Z","0.0.0":"2014-12-06T19:45:13.838Z","1.0.0":"2016-09-27T17:13:58.832Z"},"homepage":"https://github.com/fgascon/s-conf","keywords":["configuration","service","daemon"],"repository":{"type":"git","url":"git://github.com/fgascon/s-conf.git"},"author":{"name":"fgascon"},"bugs":{"url":"https://github.com/fgascon/s-conf/issues"},"license":"MIT","readmeFilename":"README.md"}