{"_id":"denver","_rev":"18-ed3b848be22bab3c64f12adff8be3f2e","name":"denver","description":"Create layers of ENV variables saved to etcd and deploy docker containers using them","dist-tags":{"latest":"0.3.2"},"versions":{"0.0.2":{"name":"denver","version":"0.0.2","description":"Create layers of ENV variables saved to etcd and deploy docker containers using them","main":"index.js","scripts":{"test":"make test"},"bin":{"denver":"./cli.js"},"repository":{"type":"git","url":"https://github.com/binocarlos/denver"},"keywords":["env","docker","etcd"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/denver/issues"},"dependencies":{"etcdx":"~0.0.1","async":"~0.2.9","commander":"~2.2.0","concat-stream":"~1.4.4"},"devDependencies":{"mocha":"~1.12.0","should":"~1.2.2"},"homepage":"https://github.com/binocarlos/denver","_id":"denver@0.0.2","dist":{"shasum":"314e6cc8844d2bc2be6b4b73c5478bc5c7b68820","tarball":"https://registry.npmjs.org/denver/-/denver-0.0.2.tgz","integrity":"sha512-jzIKXG9EXH3RT77yQ5oZ4x1YNTVlNgI6nBs3efgYlKTytz6TbIHpI79Znda/pzs/XmrLz0FvykuUxsQ9EOlesQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2cdmt14aqVSf/FJ4nM9NoyFCgX9oM9hcRS9nLHwOj3wIgGo2yBpm1Nx8WPixVGFICYFMbk81iLZdLM0cMJn3m088="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"0.1.0":{"name":"denver","version":"0.1.0","description":"Create layers of ENV variables saved to etcd and deploy docker containers using them","main":"index.js","scripts":{"test":"make test"},"bin":{"denver":"./cli.js"},"repository":{"type":"git","url":"https://github.com/binocarlos/denver"},"keywords":["env","docker","etcd"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/denver/issues"},"dependencies":{"async":"~0.2.9","commander":"~2.2.0","concat-stream":"~1.4.4","etcdjs":"^1.1.1"},"devDependencies":{"mocha":"~1.12.0","should":"~1.2.2"},"homepage":"https://github.com/binocarlos/denver","_id":"denver@0.1.0","dist":{"shasum":"ba2cf9e60fc1bcd8f57de14d70213e0afd656a5d","tarball":"https://registry.npmjs.org/denver/-/denver-0.1.0.tgz","integrity":"sha512-hYcrCYtxCNh2cJ9zPYnrqv+3iqiMni17JTDzP8MyBMKJHJRh6ydFZYxspiEea3+Mq1HkUy0FS8TMKUXxv2+ZEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKxPfblPfQd5fHtKVtlpbrofe7MFR4+cOC4XOk9zmg2gIgKKvXEHQYs4aokCcaz+q+yqYBgyLdlgaJofehyc4H608="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"0.2.0":{"name":"denver","version":"0.2.0","description":"Create layers of ENV variables saved to etcd and deploy docker containers using them","main":"index.js","scripts":{"test":"make test"},"bin":{"denver":"./cli.js"},"repository":{"type":"git","url":"https://github.com/binocarlos/denver"},"keywords":["env","docker","etcd"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/denver/issues"},"dependencies":{"async":"~0.2.9","commander":"~2.2.0","concat-stream":"~1.4.4","etcdjs":"^1.1.1"},"devDependencies":{"mocha":"~1.12.0","should":"~1.2.2"},"homepage":"https://github.com/binocarlos/denver","_id":"denver@0.2.0","dist":{"shasum":"9180a8db534af250b71898f684de6bd72e56760d","tarball":"https://registry.npmjs.org/denver/-/denver-0.2.0.tgz","integrity":"sha512-YDTb/x7GK+Nz2O5tnjJBnoeNICBbXQBqOJuBYtgXfG8TMbQjI1P/ch/sW6FmvEKXYc0kQbIXZ6y880qBlau/LQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTEhM3gtZk/Chm3vd51jAxryGTUM4XwrzLoZovW64zbgIhAPPIQP8cSrVo1zHawLI2CjzKYwX4qPsynCXWdSoeVhOq"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"0.2.1":{"name":"denver","version":"0.2.1","description":"Create layers of ENV variables saved to etcd and deploy docker containers using them","main":"index.js","scripts":{"test":"make test"},"bin":{"denver":"./cli.js"},"repository":{"type":"git","url":"https://github.com/binocarlos/denver"},"keywords":["env","docker","etcd"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/denver/issues"},"dependencies":{"async":"~0.2.9","commander":"~2.2.0","concat-stream":"~1.4.4","etcdjs":"^1.1.1"},"devDependencies":{"mocha":"~1.12.0","should":"~1.2.2"},"homepage":"https://github.com/binocarlos/denver","_id":"denver@0.2.1","dist":{"shasum":"663fb0903847ded40c4fff63839299861f99a5b2","tarball":"https://registry.npmjs.org/denver/-/denver-0.2.1.tgz","integrity":"sha512-/WCCqLZS0Xjr7Ok3JMCgn/0h+HAW6c1aVwSrvDxhBsTWn4BwLH+BuGCJ7P+68k9AWVSNifRkC5s9LNNXOoXkrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMDkyf5B6v//tWMrSPpyvbeB2uPMip04NMaSD0/3H00QIgCZ0DdoTh4lRQQ3JzXgSyR1/ptWFzfv3QkxUcSKYxM4Q="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"0.2.2":{"name":"denver","version":"0.2.2","description":"Create layers of ENV variables saved to etcd and deploy docker containers using them","main":"index.js","scripts":{"test":"make test"},"bin":{"denver":"./cli.js"},"repository":{"type":"git","url":"https://github.com/binocarlos/denver"},"keywords":["env","docker","etcd"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/denver/issues"},"dependencies":{"async":"~0.2.9","commander":"~2.2.0","concat-stream":"~1.4.4","etcdjs":"^1.1.1"},"devDependencies":{"mocha":"~1.12.0","should":"~1.2.2"},"homepage":"https://github.com/binocarlos/denver","_id":"denver@0.2.2","dist":{"shasum":"c4ff443d78a1a5e2994998d3cb774b1aea3e3909","tarball":"https://registry.npmjs.org/denver/-/denver-0.2.2.tgz","integrity":"sha512-mrFFRVmwplLn8NZISiJ0qeOdR24RBV0YNiC2GU8KNxwA6zXkn7IrlEmiDgjBXQ/rGwG0JtsdgE9o9xtt4Iv10g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAiGM5SVBL2CNUSy4Go7zLW14dh/IY7k/rI+aXQFOWdKAiEAz5KtC2H4sJpi1OiJuLz90qfqjPPUQ0qXM2fUuJd5CeM="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"0.3.0":{"name":"denver","version":"0.3.0","description":"Create layers of ENV variables saved to etcd and deploy docker containers using them","main":"index.js","scripts":{"test":"make test"},"bin":{"denver":"./cli.js"},"repository":{"type":"git","url":"https://github.com/binocarlos/denver"},"keywords":["env","docker","etcd"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/denver/issues"},"dependencies":{"async":"~0.2.9","commander":"~2.2.0","concat-stream":"~1.4.4","etcdjs":"^1.1.1"},"devDependencies":{"mocha":"~1.12.0","should":"~1.2.2"},"homepage":"https://github.com/binocarlos/denver","_id":"denver@0.3.0","dist":{"shasum":"2d987f6fef076bcf6cccd248b3d38b97b3fa22aa","tarball":"https://registry.npmjs.org/denver/-/denver-0.3.0.tgz","integrity":"sha512-mp3TfLQHcVjOIR39oOWMwy091A0qrz8TZf3Jlarh6zB5y2VG6qLxlVHj4tWI1dnZXJSAgBlNnZXZbLzkBrcXvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDuhu1vHmqVxjg1wgFT3huhZPqSLLNzPwQLmbP0QxWGuAiEAwE7XBHaGY6HxMFwewEyT83F+aSVGaNlDTTksYxZ6y3Q="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"0.3.1":{"name":"denver","version":"0.3.1","description":"Create layers of ENV variables saved to etcd and deploy docker containers using them","main":"index.js","scripts":{"test":"make test"},"bin":{"denver":"./cli.js"},"repository":{"type":"git","url":"https://github.com/binocarlos/denver"},"keywords":["env","docker","etcd"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/denver/issues"},"dependencies":{"async":"~0.2.9","commander":"~2.2.0","concat-stream":"~1.4.4","etcdjs":"^1.1.1"},"devDependencies":{"mocha":"~1.12.0","should":"~1.2.2"},"homepage":"https://github.com/binocarlos/denver","_id":"denver@0.3.1","dist":{"shasum":"2506534b96890b15dec97839a5dd67bfc2c1ad01","tarball":"https://registry.npmjs.org/denver/-/denver-0.3.1.tgz","integrity":"sha512-c3rEyhRGgk2i2H8efAk14ySjKaIJgZgDKQEsCODNe8rCk1tMKZVQg3FQTXFhms813xqLFoLdzzIvVUxXR5ZHqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHq+UrRoBoKnc7Ufisy+aci3/I5sEhZT4HK401LLtClGAiEAyQuS5wwXQafZUulg98JaP/2xQnsNkF0bv4MCzWOwSks="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"0.3.2":{"name":"denver","version":"0.3.2","description":"Create layers of ENV variables saved to etcd and deploy docker containers using them","main":"index.js","scripts":{"test":"make test"},"bin":{"denver":"./cli.js"},"repository":{"type":"git","url":"https://github.com/binocarlos/denver"},"keywords":["env","docker","etcd"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/denver/issues"},"dependencies":{"async":"~0.2.9","commander":"~2.2.0","concat-stream":"~1.4.4","etcdjs":"^1.1.1"},"devDependencies":{"mocha":"~1.12.0","should":"~1.2.2"},"homepage":"https://github.com/binocarlos/denver","_id":"denver@0.3.2","dist":{"shasum":"7e1420d24d21618b16129082bfd5327d90b46cc8","tarball":"https://registry.npmjs.org/denver/-/denver-0.3.2.tgz","integrity":"sha512-EnHhTOMq4zxmu+gvkj/prKLD0TwBko8lqsuihrCwVXm+dt+p+idVuiMWVPTJVM5nl7/tiEL3tc6mTZ6Ysorfyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCU/bgrLS3OEBsdr+eB/g8S9mFjdMM5l7KXKvUTWXO5BwIhAO+YLsIawJzq4CoqTZplwL068m03YPCxyNNbD/Sv8rdW"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]}},"readme":"denver\n======\n\n![Denver](https://github.com/binocarlos/denver/raw/master/denver.jpg)\n\n[![Travis](http://img.shields.io/travis/binocarlos/denver.svg?style=flat)](https://travis-ci.org/binocarlos/denver)\n\nCreate layers of ENV variables saved to etcd and deploy docker containers using them\n\n## installation\n\n```\n$ npm install denver -g\n```\n\n## usage\n\ndenver will save ENV variables for a stack under a key in etcd.\n\nit will merge stacks in order so one stack can inherit from another.\n\nit will spit out stacks environment in a few useful formats.\n\n## api\n\n### var den = denver(options)\n\ncreate a new denver object using the options:\n\n * host - the etcd host (defaults to 127.0.0.1)\n * port - the etcd port (defaults to 4001)\n * key - the base key (default to /denver)\n\nYou can always use the envrionment variables to set these values:\n\n * DENVER_HOST\n * DENVER_PORT\n * DENVER_KEY\n\n```js\nvar denver = require('denver');\n\nvar den = denver({\n\thost:'127.0.0.1',\n\tport:4001,\n\tkey:'/denver'\n});\n```\n\n### den.set(stack, key, value, callback)\n\nset a value for a stack\n\n```js\nden.set('app1', 'test', 'hello', function(err){\n\t// value is written\n})\n```\n\n### den.get(stack, key, callback)\n\nget a value from a stack\n\n```js\nden.get('app1', 'test', function(err, value){\n\t// value is here!\n})\n```\n\n### den.ls(callback)\n\nlist all of the stacks\n\n```js\nden.ls(function(err, stacks){\n\t// stacks is an array of stack names\n})\n```\n\n### den.rm(stack, callback)\n\nremove a stack from the db\n\n```js\nden.rm('app1', function(err){\n\t// the app is gone\n})\n```\n\n### den.env(stacks, callback)\n\nget an object with the values for the environment that is created from merging the stacks array.\n\n```js\nden.env([\n\t'basestack',\n\t'applicationstack'\n], function(err, env){\n\t// env is an object that is a merged stack env\n})\n```\n\nYou can also just get a single stack env:\n\n\n```js\nden.env('app1', function(err, env){\n\n})\n```\n\n## events\n\n### den.on('set', function(stack, key, value){})\n\nemitted when a value is set\n\n### den.on('del', function(stack, key, value){})\n\nemitted when a value is deleted\n\n## cli\n\n### denver ls\n\nList the stack names we have environments for\n\n```bash\n$ denver ls\n```\n\n### denver rm\n\nRemove a stack from the database\n\n```bash\n$ denver rm myapp\n```\n\n### denver get <stack> <var>\n\nPrint the value of a single environment variable\n\n```bash\n$ denver get myapp ADMIN_EMAIL\n```\n\n### denver set <stack> <var> <value>\n\nWrite the value of a single environment variable\n\n```bash\n$ denver set myapp ADMIN_EMAIL bob@thebuilder.com\n```\n\n### denver del <stack> <var>\n\nRemove a value from an environment\n\n```bash\n$ denver del myapp ADMIN_EMAIL\n```\n\n### denver env <stack> <stack>\n\nPrint the whole environment for a stack\n\n```bash\n$ denver env myapp\n```\n\nYou can 'merge' several stacks with the env command - this lets you have 'global' envs or whatever:\n\n```bash\n$ denver env defaultenv myapp\n```\n\nWhen you merge - the last stack will take precendence - so myapp -> ADMIN_EMAIL would overwrite defaultenv -> ADMIN_EMAIL.\n\nYou can merge as many stacks as you want.\n\n### denver docker <stack> <stack>\n\nYou can also print the environment in a docker friendly format:\n\n```\n$ denver docker defaultenv myapp\n```\n\nThis would output:\n\n```\n-e ADMIN_EMAIL=bob@thebuilder.com -e HOSTNAME=bobthebuilder.com\n```\n\n### denver inject <stack>\n\nRead env vars one per line from stdin\n\nfile - myenv.txt:\n\n```\nHELLO=world\nADMIN_EMAIL=bob@thebuilder.com\n```\n\n``` bash\n$ cat myenv.txt | denver inject myapp\n$ denver docker myapp\n```\n\nThis would print:\n\n```\n-e HELLO=world -e ADMIN_EMAIL=bob@thebuilder.com\n```\n\n## license\n\nMIT","maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}],"time":{"modified":"2022-06-15T00:42:58.416Z","created":"2014-04-10T15:36:09.753Z","0.0.2":"2014-04-10T15:36:09.753Z","0.1.0":"2014-05-10T15:47:07.861Z","0.2.0":"2014-05-10T15:58:36.082Z","0.2.1":"2014-05-10T16:02:16.814Z","0.2.2":"2014-05-10T16:04:58.918Z","0.3.0":"2014-05-10T17:37:47.959Z","0.3.1":"2014-05-14T15:22:36.526Z","0.3.2":"2014-05-14T15:26:56.619Z"},"homepage":"https://github.com/binocarlos/denver","keywords":["env","docker","etcd"],"repository":{"type":"git","url":"https://github.com/binocarlos/denver"},"author":{"name":"Kai Davenport"},"bugs":{"url":"https://github.com/binocarlos/denver/issues"},"license":"MIT","readmeFilename":"README.md"}