{"_id":"node-props","_rev":"11-6910d7f75a0932f81fe2b2f2f2e9b328","name":"node-props","description":"Read properties from multiple URIs provided on the command line.","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"node-props","description":"Read properties from multiple URIs provided on the command line.","maintainers":[{"name":"Meadhbh Hamrick","email":"OhMeadhbh@gmail.com","url":"http://meadhbh.org/"}],"licenses":[{"type":"MIT","url":"https://github.com/OhMeadhbh/node-props/raw/master/LICENSE"}],"repositories":[{"type":"git","url":"https://github.com/OhMeadhbh/node-props"}],"directories":["test"],"version":"0.0.1","keywords":["properties","configuration","config"],"dependencies":{},"devDependencies":{},"_id":"node-props@0.0.1","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"6e1030a7c1a4346be3c5e7f7116c9ba5b459ac9b","tarball":"https://registry.npmjs.org/node-props/-/node-props-0.0.1.tgz","integrity":"sha512-WQvnsRhTmZhsA18li6JcIGnbYJycTHRMyurUhP+cfolya8NWmYMzmGxNHf8nQ+lJzP5XOeE7/XcJ+96MVa5vww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH66z9zW49aS0bc8lXaBW2128nh3QMaXXLFZOJAj5kvfAiAVKBinaefWTitFjDUzCjpxNVIxn3MTJrOiXx8ZsVtJXQ=="}]},"scripts":{}},"0.0.2":{"name":"node-props","description":"Read properties from multiple URIs provided on the command line.","maintainers":[{"name":"Meadhbh Hamrick","email":"OhMeadhbh@gmail.com","url":"http://meadhbh.org/"}],"licenses":[{"type":"MIT","url":"https://github.com/OhMeadhbh/node-props/raw/master/LICENSE"}],"repositories":[{"type":"git","url":"https://github.com/OhMeadhbh/node-props"}],"directories":["test"],"version":"0.0.2","main":"./props.js","keywords":["properties","configuration","config"],"dependencies":{},"devDependencies":{},"_id":"node-props@0.0.2","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"e32c4be958a02453af866ea3ed1d646ae2520dc8","tarball":"https://registry.npmjs.org/node-props/-/node-props-0.0.2.tgz","integrity":"sha512-UAagcKinIgTFPjYDQi8Tl0VB1CLtk/uv7Wl2vPOUoAbUOsBIRROJU+WqTJGd8QpyOPNSg2kMPddNPJX2b71btA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE26uRRZB8ufsz+8D6nrem4+Kn3PYFQrK7h2TwPKQPoSAiEAvDhmZ/ODIkMH20sdv8Mkc6j2LmSYy43UeGQqfEIm/30="}]},"scripts":{}},"0.0.3":{"name":"node-props","description":"Read properties from multiple URIs provided on the command line.","maintainers":[{"name":"Meadhbh Hamrick","email":"OhMeadhbh@gmail.com","url":"http://meadhbh.org/"}],"licenses":[{"type":"MIT","url":"https://github.com/OhMeadhbh/node-props/raw/master/LICENSE"}],"repositories":[{"type":"git","url":"https://github.com/OhMeadhbh/node-props"}],"directories":["test"],"version":"0.0.3","main":"./node-props.js","keywords":["properties","configuration","config"],"dependencies":{},"devDependencies":{},"_id":"node-props@0.0.3","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"78c535d625c0ebe241e8822db2a814122d269848","tarball":"https://registry.npmjs.org/node-props/-/node-props-0.0.3.tgz","integrity":"sha512-zRGIbD/XgEeAoD/bld2M2MSXVpLZJ3D17ihqt26+Mybdn7RbG4wVsMHwo7XmNqFO0GiURxBim3TRBEdAQSondw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBU3BP+HvM1tcmoPG5+xJxKNRWv7eDlB66quOkmjZhpTAiEAoF5SG/bij6tlxGgjtfzbpMSh+Bj9uVSOc0gmc5yD2jc="}]},"scripts":{}},"0.0.5":{"name":"node-props","description":"Read properties from multiple URIs provided on the command line.","maintainers":[{"name":"ohmeadhbh","email":"OhMeadhbh@gmail.com"}],"licenses":[{"type":"MIT","url":"https://github.com/OhMeadhbh/node-props/raw/master/LICENSE"}],"repository":{"type":"git","url":"git://github.com/OhMeadhbh/node-props.git"},"directories":["test"],"version":"0.0.5","main":"./node-props.js","keywords":["properties","configuration","config"],"author":{"name":"Meadhbh Hamrick","email":"OhMeadhbh@gmail.com","url":"http://meadhbh.org/"},"_npmUser":{"name":"ohmeadhbh","email":"OhMeadhbh@gmail.com"},"_id":"node-props@0.0.5","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"bd303471b396e8f7716e545029bd5b349966743d","tarball":"https://registry.npmjs.org/node-props/-/node-props-0.0.5.tgz","integrity":"sha512-9NWltN3eAlGCPjkRqbrmg+vcnhWCz3DrnpZsZnqohv8gHGQOkvLUOUGqHv16lyA2F8MjNk8xvEvD9tPPanZNXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAPWBGXi8/fqA6kkJC2XPZDgnTnpSuZaUxNqJM2NLH4KAiAr446xOWUbRHav0iEaLvgJunYdQZJH/Ls2Ytg92Pc/9Q=="}]},"readme":"# node-props\n\nThis package lets application users specify one or more URLs to JSON files\ncontaining \"application properties.\" After the files are read and deserialized,\na programmer supplied callback is executed. The module provides the function:\n\n  props.read( callback );\n\nwhich reads the command line arguments looking for the string '--config'. The\nparameter following the config file is a file:, http: or https: URI. You\ncan use multiple --config flags to specify multiple resources. Each resource\nwill be read in order and combined into a single object that is passed to the\ncallback.\n\nI use this feature to separate hardware specific properties from application\nspecific properties. I usually have hardware specific properties (like IP\naddresses and ports to listen on) in files on the filesystem while application\nspecific properties (names of DB servers, application timeouts, etc.) in \nhttp resources on our internal net. This is useful if you're running the same\napplication on several different machines.\n\n## Installation\n\nThe easiest way to install this package is to use npm:\n\n<pre>    npm install node-props</pre>\n\nIf you want to check out the source, use the git command:\n\n<pre>    git clone git://github.com/OhMeadhbh/node-props.git</pre>\n\n## Usage (for end users)\n\nThis package is intended to allow a node application user to do something like\nthis:\n\n<pre>    node application.js \\\n      --config file:///etc/application.json \\\n      --config http://example.com/application.json</pre>\n\nand then have the system will pull properties from both the local file and\nthe remote server (example.com), munge them together in the same object and\nstart the main body of the application.\n\n## Usage (for developers)\n\nTo use the module, simply import the package can call the read() function. Ex:\n\n<pre>    var props = require('node-props');\n    props.read( function ( properties ) {\n      console.log( 'started this app with the following props:');\n      console.log( JSON.stringify( properties ) );\n    } );</pre>\n\n## Tests\n\nThere are expresso.js compatible tests in the test directory. Bonus points if\nyou add to the test suite.\n\n## License\n\nThis package is released under a MIT license, the text of which may be found\nat https://github.com/OhMeadhbh/node-props/raw/master/LICENSE ."}},"maintainers":[{"name":"ohmeadhbh","email":"OhMeadhbh@gmail.com"}],"time":{"modified":"2022-06-21T18:21:21.427Z","created":"2011-06-02T17:07:33.538Z","0.0.1":"2011-06-02T17:07:34.121Z","0.0.2":"2011-06-03T12:08:27.964Z","0.0.3":"2011-06-03T12:34:58.742Z","0.0.5":"2012-02-06T22:12:47.234Z"},"author":{"name":"Meadhbh Hamrick","email":"OhMeadhbh@gmail.com","url":"http://meadhbh.org/"},"repository":{"type":"git","url":"git://github.com/OhMeadhbh/node-props.git"}}