{"_id":"settings","_rev":"16-4664ba62335e4cdcaf5f415d4598ee20","name":"settings","description":"Simple environment-based application settings","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"settings","version":"0.0.1","description":"Simple, hierarchical environment-based app settings","author":{"name":"Mario Gutierrez","email":"mario@mgutz.com"},"main":"./index","_id":"settings@0.0.1","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.12-1","_nodeVersion":"v0.3.3","dist":{"shasum":"43f62801b353039c14f5ef3be34b3b551c545a11","tarball":"https://registry.npmjs.org/settings/-/settings-0.0.1.tgz","integrity":"sha512-aVeJIDt7WDn61TTCo99WwtFW/vinxYMJPM2rzR4RH7979WJDvFH6RtMiCsuA2eXy2kzqpQjDXUF8AbERpJpULQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBH+GjQklqZvulTuHImAsGqvq5hdkSTwLtr5uAzo1Fh0AiEAn/yLsPgmd4FVQ///Xfk6CET7HjzidD6FX8IDuYjlDes="}]},"directories":{}},"0.0.2":{"name":"settings","version":"0.0.2","description":"Simple, hierarchical environment-based app settings","author":{"name":"Mario Gutierrez","email":"mario@mgutz.com"},"main":"index","repository":{"type":"git","url":"git://github.com/mgutz/node-settings.git"},"dependencies":{},"devDependencies":{},"_id":"settings@0.0.2","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"6989cd7d5d6711a956efc1d47e6cfc9862afaec9","tarball":"https://registry.npmjs.org/settings/-/settings-0.0.2.tgz","integrity":"sha512-KfV2MDNyP6m3aSgZ/yON2EXsSXtbfbphTKQEFjgCe4OahqdX2TdR9T48S3PiUsviXFG34UqeaUQ6YbGm5ajs3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAyQn2PB+5ymPXWqEtolNi5ZZXcPlpr5A8NACaHBWOdxAiB8W+f5sTBpPOaJeGzK6W/H/jxXRqEpPokto73bQlEmAA=="}]},"scripts":{},"directories":{}},"0.1.0":{"name":"settings","version":"0.1.0","description":"Simple environment-based application settings","author":{"name":"Mario Gutierrez","email":"mario@mgutz.com"},"repository":{"type":"git","url":"git://github.com/mgutz/node-settings.git"},"devDependencies":{"chai":"~1.0.4","coffee-script":"~1.3.3","mocha":"~1.1.0"},"_npmUser":{"name":"mgutz","email":"mario@mgutz.com"},"_id":"settings@0.1.0","dependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"d43acbf1ff3597f2bda1736cb9e3df17cffb830f","tarball":"https://registry.npmjs.org/settings/-/settings-0.1.0.tgz","integrity":"sha512-FA4ajB9eBEwITjIaKCT6uRJhC3GW8k4bXokw+4Yqkq3aGKknC0pJiMytxaUuJahNd+2zokHTfDi5N9Fm/7tjvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHkgxPWfqlVkcWKL2Xedw9VF/j8aVD3xPQUX8Np2EUbAIgATHbv1XmTKvlRXe6AogicwWCpLHRgZi0V8hodShoFAo="}]},"readme":"# node-settings\n\nSimple, hierarchical environment-based app settings.\n\n## Installation\n\n    npm install settings\n\n## Usage\n\nConfiguration file `config.js`\n\n    module.exports = {\n      common: {\n        storage: {\n          host: 'localhost',\n          database: 'server_dev',\n          user: 'qirogami_user',\n          password: 'password'\n        }\n      },\n\n      // Rest of environments are deep merged over `common`.\n\n      development: {},\n      test: {\n        storage: {\n          database: 'server_test',\n          password: 'foo'\n        }\n      },\n      production:  {\n        storage: {\n          password: 'secret'\n        }\n      }\n    };\n\nApplication file `app.js`\n\n    var Settings = require('settings');\n    var config = new Settings(require('./config'));\n    // inherited from common\n    assert.equal(config.storage.host, 'localhost');\n    // specific to test\n    assert.equal(config.storage.password, 'foo');\n\n\n### Environments\n\nThe environment to use is based on (highest precedence first):\n\n1. `forceEnv` property in config file\n\n        // config/environment.js\n        exports.forceEnv = 'production';\n\n2. `$NODE_ENV` environment variable\n\n        NODE_ENV=production node app.js\n\n3. `env` option passed to constructor.\n\n        new Settings(file, {env: 'test'});\n\n\n### Application Defaults\n\nProperty defaults may be preset in code.\n\n    var settings = new Settings(file, {\n     defaults: {\n       framework: {\n         views: 'app/views'\n       }\n     }\n    });\n    assert.equal(settings.framework.views, 'app/views');\n\n\n## Hacking on the source\n\nTo compile and test\n\n    npm install bake-bash -g\n    npm install -d\n    bake test\n\n## Notes\n\n`globalKey` option has been removed. Do this instead\n\n    global.APP = new Settings(file);\n\n\n## Credits\n\njQuery library for `support/extend.js` from @FGRibreau\n\n\n## License\n\nCopyright (C) 2010 by Mario L. Gutierrez <mario@mgutz.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","maintainers":[{"name":"mgutz","email":"mario@mgutz.com"}]},"0.1.1":{"name":"settings","version":"0.1.1","description":"Simple environment-based application settings","author":{"name":"Mario Gutierrez","email":"mario@mgutz.com"},"repository":{"type":"git","url":"git://github.com/mgutz/node-settings"},"devDependencies":{"chai":"~1.5.0","coffee-script":"~1.6.2","mocha":"~1.9.0"},"readme":"# node-settings\n\nSimple, hierarchical environment-based app settings.\n\n## Installation\n\n    npm install settings\n\n## Usage\n\nConfiguration file `config.js`\n\n    module.exports = {\n      common: {\n        storage: {\n          host: 'localhost',\n          database: 'server_dev',\n          user: 'qirogami_user',\n          password: 'password'\n        }\n      },\n\n      // Rest of environments are deep merged over `common`.\n\n      development: {},\n      test: {\n        storage: {\n          database: 'server_test',\n          password: 'foo'\n        }\n      },\n      production:  {\n        storage: {\n          password: 'secret'\n        }\n      }\n    };\n\nApplication file `app.js`\n\n    var Settings = require('settings');\n    var config = new Settings(require('./config'));\n    // inherited from common\n    assert.equal(config.storage.host, 'localhost');\n    // specific to test\n    assert.equal(config.storage.password, 'foo');\n\n\n### Environments\n\nThe environment to use is based on (highest precedence first):\n\n1. `forceEnv` property in config file\n\n        // config/environment.js\n        exports.forceEnv = 'production';\n\n2. `$NODE_ENV` environment variable\n\n        NODE_ENV=production node app.js\n\n3. `env` option passed to constructor.\n\n        new Settings(file, {env: 'test'});\n\n\n### Application Defaults\n\nProperty defaults may be preset in code.\n\n    var settings = new Settings(file, {\n     defaults: {\n       framework: {\n         views: 'app/views'\n       }\n     }\n    });\n    assert.equal(settings.framework.views, 'app/views');\n\n\n## Hacking on the source\n\nTo compile and test\n\n    npm install bake-bash -g\n    npm install -d\n    bake test\n\n## Notes\n\n`globalKey` option has been removed. Do this instead\n\n    global.APP = new Settings(file);\n\n\n## Credits\n\njQuery library for `support/extend.js` from @FGRibreau\n\n\n## License\n\nCopyright (C) 2010 by Mario L. Gutierrez <mario@mgutz.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","readmeFilename":"README.md","_id":"settings@0.1.1","dist":{"shasum":"efba37888b3ec895d38de3f12e6b2debf1486341","tarball":"https://registry.npmjs.org/settings/-/settings-0.1.1.tgz","integrity":"sha512-5/RjHd66x8wrVDWfNHX2orFMQ2Aaay/iIXwZix41GRzWwyN9lxKhlGdU3AWCHb3b0m9hBB/RUKpFCV7GlSFCyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4RPZfia6TWwWSopjAQjmw+hq9lxzrKxZYSIVEct/Y1wIgNOB3Qj2UgfVt1YSqQp8KFe734DCsSfxLaNN1AY5P/U0="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"mgutz","email":"mario@mgutz.com"},"maintainers":[{"name":"mgutz","email":"mario@mgutz.com"}]}},"maintainers":[{"name":"mgutz","email":"mario@mgutz.com"}],"time":{"modified":"2022-06-26T18:21:47.038Z","created":"2011-01-06T10:14:09.764Z","0.0.1":"2011-01-06T10:14:10.042Z","0.0.2":"2011-05-30T01:48:16.559Z","0.1.0":"2012-06-08T19:45:14.079Z","0.1.1":"2013-04-20T17:51:38.898Z"},"author":{"name":"Mario Gutierrez","email":"mario@mgutz.com"},"repository":{"type":"git","url":"git://github.com/mgutz/node-settings"},"users":{"dylanh724":true}}