{"name":"config","version":"3.3.2","keywords":["conf","config","configuration","node-config","config-node","env","environment"],"author":{"name":"Loren West","email":"open_source@lorenwest.com"},"license":"MIT","_id":"config@3.3.2","homepage":"http://lorenwest.github.com/node-config","bugs":{"url":"https://github.com/lorenwest/node-config/issues"},"dist":{"shasum":"35be3846054340f0f79778b2445afffbc11867c7","tarball":"http://registry-npm.ywwl.com/config/download/config-3.3.2.tgz","fileCount":9,"integrity":"sha512-NlGfBn2565YA44Irn7GV5KHlIGC3KJbf0062/zW5ddP9VXIuRj0m7HVyFAWvMZvaHPEglyGfwmevGz3KosIpCg==","signatures":[{"sig":"MEUCIQCvn9/Y94VIGnONPezp2AEUVHls/8A+Ve37J5AomJtpiQIgPQKI9c/q2JDcEsmhGQ71ot0zcBhP8LxJ6juJbGGqSWs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":89621,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbNRiCRA9TVsSAnZWagAA7moQAIRGKzVecOI9jbbF6CT/\nRqDrGIvjI0bEmKKeRpb+tUp3ngCWS7M/JDoQv3921ZCpfnElX1mnUsKlFBq4\nVwASycWPxIU51XWzEGelJHdGNhOiUhsUzQd1GUyW4RmD9iM+wnydY7DmYJ58\nAfdghXbrBsUi8BhCDEV5WQ3ZTFJ8FqP4qYP0ZMim5gxyz8NnQbc6q68E62Ls\nY4VR8wWCd8SGRdmWgwMmIpseE46xW0rQO+SW3I8XFfpjCs/hstGRGCzoEp8y\nlBtDzptkEt59owf49oMO5CnOKVKZVeQdvs3tVK3rDrTZw/EDJIB4B3GWfjta\npVtdmHq0T04C7bPL7tv2RElJswaDqqU5C1u25kV5X65rm3Boe2b89OGH+VEL\niZQcJO9FqxE/BdKJ6vmWa0YtgULXWUR6MpHHThlIOqz4CHMPzt/CdDzVOJU5\nFIarfcM63btLEPSjdGkVDrLhww8FY0xJK7CFi6K2vhK76iZbRwxKWYq6DMCs\n+kDKunc384AgdmLodznE8quOVIgLn6GLs+a0apgBCOBb+WRvR4T6gqgiHajs\nL2pUC5dLTb6DgeAzBRoYkWWko8VyiJMzRnqzvhhYhkKD4wb9AXlkCe0wgRbG\n4laYNybrpautE4NogoxS8Q+tEs4qL5ED45WWtI96XHtSBjthndUEebuusuBT\nghbW\r\n=bqZG\r\n-----END PGP SIGNATURE-----\r\n","size":26613,"noattachment":false,"key":"/config/-/config-3.3.2.tgz"},"main":"./lib/config.js","engines":{"node":">= 6.0.0"},"gitHead":"1464a401f563dc143efe68a704dc448283ade93e","scripts":{"test":"./node_modules/vows/bin/vows test/*.js --spec"},"_npmUser":{"name":"lorenwest","email":"npm@lorenwest.com"},"repository":{"url":"git+ssh://git@github.com/lorenwest/node-config.git","type":"git"},"_npmVersion":"6.13.6","description":"Configuration control for production node deployments","directories":{"lib":"./lib"},"_nodeVersion":"10.15.3","dependencies":{"json5":"^2.1.1"},"_hasShrinkwrap":false,"devDependencies":{"cson":"^3.0.1","toml":"^2.0.6","vows":">=0.8.1","x2js":"^2.0.1","hjson":"^1.2.0","semver":"5.3.0","js-yaml":"^3.2.2","ts-node":"^3.3.0","properties":"~1.2.1","typescript":"^2.4.2","underscore":"^1.8.3","@types/node":"^7.0.8","coffeescript":"2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/config_3.3.2_1600967777782_0.2540766916035937","host":"s3://npm-registry-packages"},"readme":"Configure your Node.js Applications\n===================================\n\n[![NPM](https://nodei.co/npm/config.svg?downloads=true&downloadRank=true)](https://nodei.co/npm/config/)&nbsp;&nbsp;\n[![Build Status](https://secure.travis-ci.org/node-config/node-config.svg?branch=master)](https://travis-ci.org/lorenwest/node-config)&nbsp;&nbsp;\n[release notes](https://github.com/node-config/node-config/blob/master/History.md)\n\nIntroduction\n------------\n\nNode-config organizes hierarchical configurations for your app deployments.\n\nIt lets you define a set of default parameters,\nand extend them for different deployment environments (development, qa,\nstaging, production, etc.).\n\nConfigurations are stored in [configuration files](https://github.com/node-config/node-config/wiki/Configuration-Files) within your application, and can be overridden and extended by [environment variables](https://github.com/lorenwest/node-config/wiki/Environment-Variables),\n [command line parameters](https://github.com/node-config/node-config/wiki/Command-Line-Overrides), or [external sources](https://github.com/lorenwest/node-config/wiki/Configuring-from-an-External-Source).\n\nThis gives your application a consistent configuration interface shared among a\n[growing list of npm modules](https://www.npmjs.org/browse/depended/config) also using node-config.\n\nProject Guidelines\n------------------\n\n* *Simple* - Get started fast\n* *Powerful* - For multi-node enterprise deployment\n* *Flexible* - Supporting multiple config file formats\n* *Lightweight* - Small file and memory footprint\n* *Predictable* - Well tested foundation for module and app developers\n\nQuick Start\n---------------\nThe following examples are in JSON format, but configurations can be in other [file formats](https://github.com/node-config/node-config/wiki/Configuration-Files#file-formats).\n\n**Install in your app directory, and edit the default config file.**\n\n```shell\n$ npm install config\n$ mkdir config\n$ vi config/default.json\n```\n```js\n{\n  // Customer module configs\n  \"Customer\": {\n    \"dbConfig\": {\n      \"host\": \"localhost\",\n      \"port\": 5984,\n      \"dbName\": \"customers\"\n    },\n    \"credit\": {\n      \"initialLimit\": 100,\n      // Set low for development\n      \"initialDays\": 1\n    }\n  }\n}\n```\n\n**Edit config overrides for production deployment:**\n\n```shell\n $ vi config/production.json\n```\n\n```json\n{\n  \"Customer\": {\n    \"dbConfig\": {\n      \"host\": \"prod-db-server\"\n    },\n    \"credit\": {\n      \"initialDays\": 30\n    }\n  }\n}\n```\n\n**Use configs in your code:**\n\n```js\nconst config = require('config');\n//...\nconst dbConfig = config.get('Customer.dbConfig');\ndb.connect(dbConfig, ...);\n\nif (config.has('optionalFeature.detail')) {\n  const detail = config.get('optionalFeature.detail');\n  //...\n}\n```\n\n`config.get()` will throw an exception for undefined keys to help catch typos and missing values.\nUse `config.has()` to test if a configuration value is defined.\n\n**Start your app server:**\n\n```shell\n$ export NODE_ENV=production\n$ node my-app.js\n```\n\nRunning in this configuration, the `port` and `dbName` elements of `dbConfig`\nwill come from the `default.json` file, and the `host` element will\ncome from the `production.json` override file.\n\nArticles\n--------\n\n* [Configuration Files](https://github.com/node-config/node-config/wiki/Configuration-Files)\n  * [Special features for JavaScript configuration files](https://github.com/node-config/node-config/wiki/Special-features-for-JavaScript-configuration-files)\n* [Common Usage](https://github.com/node-config/node-config/wiki/Common-Usage)\n* [Environment Variables](https://github.com/node-config/node-config/wiki/Environment-Variables)\n* [Reserved Words](https://github.com/node-config/node-config/wiki/Reserved-Words)\n* [Command Line Overrides](https://github.com/node-config/node-config/wiki/Command-Line-Overrides)\n* [Multiple Node Instances](https://github.com/node-config/node-config/wiki/Multiple-Node-Instances)\n* [Sub-Module Configuration](https://github.com/node-config/node-config/wiki/Sub-Module-Configuration)\n* [Configuring from a DB / External Source](https://github.com/node-config/node-config/wiki/Configuring-from-an-External-Source)\n* [Securing Production Config Files](https://github.com/node-config/node-config/wiki/Securing-Production-Config-Files)\n* [External Configuration Management Tools](https://github.com/node-config/node-config/wiki/External-Configuration-Management-Tools)\n* [Examining Configuration Sources](https://github.com/node-config/node-config/wiki/Examining-Configuration-Sources)\n* [Using Config Utilities](https://github.com/node-config/node-config/wiki/Using-Config-Utilities)\n* [Upgrading from Config 0.x](https://github.com/node-config/node-config/wiki/Upgrading-From-Config-0.x)\n* [Webpack usage](https://github.com/node-config/node-config/wiki/Webpack-Usage)\n\nFurther Information\n---------------------\nIf you still don't see what you are looking for, here are some more resources to check: \n\n * The [wiki may have more pages](https://github.com/node-config/node-config/wiki) which are not directly linked from here.\n * Review [questions tagged with node-config](https://stackexchange.com/filters/207096/node-config) on StackExchange. These are monitored by `node-config` contributors.\n * [Search the issue tracker](https://github.com/node-config/node-config/issues). Hundreds of issues have already been discussed and resolved there.\n\nContributors\n------------\n<table id=\"contributors\"><tr><td><img src=https://avatars.githubusercontent.com/u/373538?v=4><a href=\"https://github.com/lorenwest\">lorenwest</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/25829?v=4><a href=\"https://github.com/markstos\">markstos</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/1083065?v=4><a href=\"https://github.com/iMoses\">iMoses</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/447151?v=4><a href=\"https://github.com/elliotttf\">elliotttf</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/8839447?v=4><a href=\"https://github.com/jfelege\">jfelege</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/66902?v=4><a href=\"https://github.com/leachiM2k\">leachiM2k</a></td>\n</tr><tr><td><img src=https://avatars.githubusercontent.com/u/791137?v=4><a href=\"https://github.com/josx\">josx</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/133277?v=4><a href=\"https://github.com/enyo\">enyo</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/4307697?v=4><a href=\"https://github.com/leosuncin\">leosuncin</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/1077378?v=4><a href=\"https://github.com/arthanzel\">arthanzel</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/1656140?v=4><a href=\"https://github.com/eheikes\">eheikes</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/138707?v=4><a href=\"https://github.com/th507\">th507</a></td>\n</tr><tr><td><img src=https://avatars.githubusercontent.com/u/506460?v=4><a href=\"https://github.com/Osterjour\">Osterjour</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/1751645?v=4><a href=\"https://github.com/cunneen\">cunneen</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/842998?v=4><a href=\"https://github.com/nsabovic\">nsabovic</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/5138570?v=4><a href=\"https://github.com/BadgerBadgerBadgerBadger\">BadgerBadgerBadgerBadger</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/2529835?v=4><a href=\"https://github.com/simon-scherzinger\">simon-scherzinger</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/8650543?v=4><a href=\"https://github.com/leonardovillela\">leonardovillela</a></td>\n</tr><tr><td><img src=https://avatars.githubusercontent.com/u/175627?v=4><a href=\"https://github.com/axelhzf\">axelhzf</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/7782055?v=4><a href=\"https://github.com/benkroeger\">benkroeger</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/1872824?v=4><a href=\"https://github.com/fgheorghe\">fgheorghe</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/1443067?v=4><a href=\"https://github.com/IvanVergiliev\">IvanVergiliev</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/1736957?v=4><a href=\"https://github.com/jpwilliams\">jpwilliams</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/1246875?v=4><a href=\"https://github.com/jaylynch\">jaylynch</a></td>\n</tr><tr><td><img src=https://avatars.githubusercontent.com/u/145742?v=4><a href=\"https://github.com/jberrisch\">jberrisch</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/9355665?v=4><a href=\"https://github.com/kgoerlitz\">kgoerlitz</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/8525267?v=4><a href=\"https://github.com/bertho-zero\">bertho-zero</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/6686044?v=4><a href=\"https://github.com/NguyenMatthieu\">NguyenMatthieu</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/1918551?v=4><a href=\"https://github.com/nitzan-shaked\">nitzan-shaked</a></td>\n<td><img src=https://avatars.githubusercontent.com/u/3058150?v=4><a href=\"https://github.com/robertrossmann\">robertrossmann</a></td>\n</tr></table>\n\nLicense\n-------\n\nMay be freely distributed under the [MIT license](https://raw.githubusercontent.com/node-config/node-config/master/LICENSE).\n\nCopyright (c) 2010-2022 Loren West \n[and other contributors](https://github.com/node-config/node-config/graphs/contributors)\n\n","publish_time":1600967778163,"maintainers":[{"name":"markstos","email":"mark@rideamigos.com"},{"name":"lorenwest","email":"npm@lorenwest.com"}],"_cnpm_publish_time":1600967778163,"dist-tags":{"latest":"5.0.1","lts":"4.4.2","preview":"5.0.0-alpha.2"}}