{"_id":"@weirdorg/config","_rev":"4-f765dea3afebd824b2f458f9347de73a","name":"@weirdorg/config","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@weirdorg/config","version":"1.0.0","keywords":["config","configuration","env","environment","environment-variables"],"author":{"name":"weirdorg"},"license":"MIT","_id":"@weirdorg/config@1.0.0","maintainers":[{"name":"chen1567851","email":"chen.wei970116@gmail.com"}],"homepage":"https://github.com/weirdorg/config#readme","bugs":{"url":"https://github.com/weirdorg/config/issues"},"c8":{"include":["*.js","*.d.ts","lib/**/*.js","lib/**/*.d.ts"],"reporter":"lcov","report-dir":"./coverage"},"dist":{"shasum":"195dd3c4e2fed25ea829f7dc5dd24d011a3689ab","tarball":"https://registry.npmjs.org/@weirdorg/config/-/config-1.0.0.tgz","fileCount":17,"integrity":"sha512-epUOpAsZbJynANZmz5HaPU7vakkSXcRrrykBPKj/Hzw8e+CixtKX9jDmEBXrtcnoY60S6qnNJwHxPsjhgsGP0w==","signatures":[{"sig":"MEYCIQDEXk/6KDnuNQRMkt5//QRtP1exvUW3HpnWKQLy+ECJcQIhAKyyCqhXha1Pq8hVKwYBzaS85ICGHTfQD9GHEDP11EEW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122852},"main":"index.js","types":"index.d.ts","engines":{"node":">= 20.0.0"},"exports":{".":{"types":"./index.d.ts","default":"./index.js","require":"./index.js"},"./lib/get.js":"./lib/get.js","./lib/raw.js":"./lib/raw.js","./lib/util.js":"./lib/util.js","./lib/get.d.ts":"./lib/get.d.ts","./lib/raw.d.ts":"./lib/raw.d.ts","./lib/util.d.ts":"./lib/util.d.ts"},"gitHead":"25f120b7f159600cfbe81cfc87103c49e55220fe","scripts":{"test":"NODE_OPTIONS='--no-experimental-strip-types' c8 node --test"},"_npmUser":{"name":"chen1567851","email":"chen.wei970116@gmail.com"},"repository":{"url":"git+ssh://git@github.com/weirdorg/config.git","type":"git"},"_npmVersion":"11.6.2","description":"Configuration manager","directories":{"lib":"./lib"},"_nodeVersion":"24.11.1","dependencies":{"unzipper":"^0.12.3"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","cson":"^3.0.1","toml":"^2.0.6","x2js":"^2.0.1","yaml":"^2.8.2","hjson":"^1.2.0","semver":"5.3.0","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_1.0.0_1776783309258_0.48853676509626376","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@weirdorg/config","version":"1.0.1","keywords":["config","configuration","env","environment","environment-variables"],"author":{"name":"weirdorg"},"license":"MIT","_id":"@weirdorg/config@1.0.1","maintainers":[{"name":"chen1567851","email":"chen.wei970116@gmail.com"}],"homepage":"https://github.com/weirdorg/config#readme","bugs":{"url":"https://github.com/weirdorg/config/issues"},"c8":{"include":["*.js","*.d.ts","lib/**/*.js","lib/**/*.d.ts"],"reporter":"lcov","report-dir":"./coverage"},"dist":{"shasum":"6e81146e0b0f36c256e9982226347a99e9475def","tarball":"https://registry.npmjs.org/@weirdorg/config/-/config-1.0.1.tgz","fileCount":17,"integrity":"sha512-IM3UZco9XqfMdal47FlOGHCqsKFCTDcSU2SS3rHM+a8x3PQzMbeHMYwwmopJ3ZOzyKz260ghb5EOCBGeM9YmjQ==","signatures":[{"sig":"MEUCIGlSf7LUSOsjUTiPr7vKVyYij02+V304MNOc/xL29hoTAiEAoOP79Rq8LoNeB+PPt4QqddTCEedTVNslU3BVMIDLtpU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":136240},"main":"index.js","types":"index.d.ts","engines":{"node":">= 20.0.0"},"exports":{".":{"types":"./index.d.ts","default":"./index.js","require":"./index.js"},"./lib/get.js":"./lib/get.js","./lib/raw.js":"./lib/raw.js","./lib/util.js":"./lib/util.js","./lib/get.d.ts":"./lib/get.d.ts","./lib/raw.d.ts":"./lib/raw.d.ts","./lib/util.d.ts":"./lib/util.d.ts"},"gitHead":"e4c980bbee07fb0824f1b4d8a20e1b979c2a5de7","scripts":{"test":"NODE_OPTIONS='--no-experimental-strip-types' c8 node --test"},"_npmUser":{"name":"chen1567851","email":"chen.wei970116@gmail.com"},"repository":{"url":"git+ssh://git@github.com/weirdorg/config.git","type":"git"},"_npmVersion":"11.6.2","description":"Configuration manager","directories":{"lib":"./lib"},"_nodeVersion":"24.11.1","dependencies":{"unzipper":"^0.12.3"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","cson":"^3.0.1","toml":"^2.0.6","x2js":"^2.0.1","yaml":"^2.8.2","hjson":"^1.2.0","semver":"5.3.0","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_1.0.1_1777306364480_0.9528286060246427","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@weirdorg/config","version":"1.0.2","keywords":["config","configuration","env","environment","environment-variables"],"author":{"name":"weirdorg"},"license":"MIT","_id":"@weirdorg/config@1.0.2","maintainers":[{"name":"chen1567851","email":"chen.wei970116@gmail.com"}],"homepage":"https://github.com/weirdorg/config#readme","bugs":{"url":"https://github.com/weirdorg/config/issues"},"c8":{"include":["*.js","*.d.ts","lib/**/*.js","lib/**/*.d.ts"],"reporter":"lcov","report-dir":"./coverage"},"dist":{"shasum":"3a495ec318122d47aee6776a3b21af8afea14ae0","tarball":"https://registry.npmjs.org/@weirdorg/config/-/config-1.0.2.tgz","fileCount":17,"integrity":"sha512-yqSfo0SsrcsQdpdzu0m4MjVowhlpEuLh/VMejWujynPzy31hSIg4zRSMyMUAbXfofy84EL9BBIVLXtqpTdD3Zg==","signatures":[{"sig":"MEUCIAeQUrZa+wQraQmnRhmnEccqJLo5gDURRTTFo8ohc0VkAiEA/CzrjcjgosHoejFH3jUhUuwghmJebd65pXLGZp0EKDs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":136239},"main":"index.js","types":"index.d.ts","engines":{"node":">= 20.0.0"},"exports":{".":{"types":"./index.d.ts","default":"./index.js","require":"./index.js"},"./lib/get.js":"./lib/get.js","./lib/raw.js":"./lib/raw.js","./lib/util.js":"./lib/util.js","./lib/get.d.ts":"./lib/get.d.ts","./lib/raw.d.ts":"./lib/raw.d.ts","./lib/util.d.ts":"./lib/util.d.ts"},"gitHead":"0525f6d1b7c536bccc2b637d64abc02b5b29bcd6","scripts":{"test":"NODE_OPTIONS='--no-experimental-strip-types' c8 node --test"},"_npmUser":{"name":"chen1567851","email":"chen.wei970116@gmail.com"},"repository":{"url":"git+ssh://git@github.com/weirdorg/config.git","type":"git"},"_npmVersion":"11.6.2","description":"Configuration manager","directories":{"lib":"./lib"},"_nodeVersion":"24.11.1","dependencies":{"adm-zip":"^0.5.17"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","cson":"^3.0.1","toml":"^2.0.6","x2js":"^2.0.1","yaml":"^2.8.2","hjson":"^1.2.0","semver":"5.3.0","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_1.0.2_1777761655003_0.08648609941034979","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@weirdorg/config","version":"1.0.3","author":{"name":"weirdorg"},"description":"Configuration manager","main":"index.js","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","require":"./index.js","default":"./index.js"},"./lib/get.js":"./lib/get.js","./lib/get.d.ts":"./lib/get.d.ts","./lib/raw.js":"./lib/raw.js","./lib/raw.d.ts":"./lib/raw.d.ts","./lib/util.js":"./lib/util.js","./lib/util.d.ts":"./lib/util.d.ts"},"keywords":["config","configuration","env","environment","environment-variables"],"directories":{"lib":"./lib"},"license":"MIT","dependencies":{"adm-zip":"^0.5.17"},"devDependencies":{"@types/node":"^7.0.8","c8":"^10.1.3","coffeescript":"2.2.4","cson":"^3.0.1","hjson":"^1.2.0","properties":"~1.2.1","semver":"5.3.0","toml":"^2.0.6","ts-node":"^3.3.0","typescript":"^2.4.2","underscore":"^1.8.3","x2js":"^2.0.1","yaml":"^2.8.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/weirdorg/config.git"},"engines":{"node":">= 20.0.0"},"c8":{"include":["*.js","*.d.ts","lib/**/*.js","lib/**/*.d.ts"],"report-dir":"./coverage","reporter":"lcov"},"scripts":{"test":"NODE_OPTIONS='--no-experimental-strip-types' c8 node --test"},"gitHead":"e6afb7a27ccdb9d4b5ae858027949d2eaef2213d","_id":"@weirdorg/config@1.0.3","bugs":{"url":"https://github.com/weirdorg/config/issues"},"homepage":"https://github.com/weirdorg/config#readme","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-OkvZ2BfQeXLGM/hg8a8giBbNaMC7INGk92cInag5kNCJWlWief12OBCb8Af9+gjeapnRf82b4iUPRz8ptq4KXA==","shasum":"2be631637e8e954b15feb6fbca70cb9079d4feb6","tarball":"https://registry.npmjs.org/@weirdorg/config/-/config-1.0.3.tgz","fileCount":17,"unpackedSize":530546,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHWDF5u/S3a3b2xB0wvlUK/5JtpAX/LChawxWfQxNnLBAiAjpRvjCzLasbQCmpwVs10c4QosOXhlCy7EzdzEPu5phg=="}]},"_npmUser":{"name":"chen1567851","email":"chen.wei970116@gmail.com"},"maintainers":[{"name":"chen1567851","email":"chen.wei970116@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/config_1.0.3_1779129008639_0.691281792351198"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-21T14:55:09.109Z","modified":"2026-05-18T18:30:09.085Z","1.0.0":"2026-04-21T14:55:09.392Z","1.0.1":"2026-04-27T16:12:44.648Z","1.0.2":"2026-05-02T22:40:55.179Z","1.0.3":"2026-05-18T18:30:08.971Z"},"bugs":{"url":"https://github.com/weirdorg/config/issues"},"author":{"name":"weirdorg"},"license":"MIT","homepage":"https://github.com/weirdorg/config#readme","keywords":["config","configuration","env","environment","environment-variables"],"repository":{"type":"git","url":"git+ssh://git@github.com/weirdorg/config.git"},"description":"Configuration manager","maintainers":[{"name":"chen1567851","email":"chen.wei970116@gmail.com"}],"readme":"Configure your Node.js Applications\r\n===================================\r\n\r\nIntroduction\r\n------------\r\n\r\nNode-config organizes hierarchical configurations for your app deployments.\r\n\r\nIt lets you define a set of default parameters,\r\nand extend them for different deployment environments (development, qa,\r\nstaging, production, etc.).\r\n\r\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),\r\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).\r\n\r\nThis gives your application a consistent configuration interface shared among a\r\n[growing list of npm modules](https://www.npmjs.org/browse/depended/config) also using node-config.\r\n\r\nProject Guidelines\r\n------------------\r\n\r\n* *Simple* - Get started fast\r\n* *Powerful* - For multi-node enterprise deployment\r\n* *Flexible* - Supporting multiple config file formats\r\n* *Lightweight* - Small file and memory footprint\r\n* *Predictable* - Well tested foundation for module and app developers\r\n\r\nQuick Start\r\n---------------\r\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).\r\n\r\n**Install in your app directory, and edit the default config file.**\r\n\r\n```shell\r\n$ npm install config\r\n$ mkdir config\r\n$ vi config/default.json\r\n```\r\n```js\r\n{\r\n  // Customer module configs\r\n  \"Customer\": {\r\n    \"dbConfig\": {\r\n      \"host\": \"localhost\",\r\n      \"port\": 5984,\r\n      \"dbName\": \"customers\"\r\n    },\r\n    \"credit\": {\r\n      \"initialLimit\": 100,\r\n      // Set low for development\r\n      \"initialDays\": 1\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n**Edit config overrides for production deployment:**\r\n\r\n```shell\r\n $ vi config/production.json\r\n```\r\n\r\n```json\r\n{\r\n  \"Customer\": {\r\n    \"dbConfig\": {\r\n      \"host\": \"prod-db-server\"\r\n    },\r\n    \"credit\": {\r\n      \"initialDays\": 30\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n**Use configs in your code:**\r\n\r\n```js\r\nconst config = require('config');\r\n//...\r\nconst dbConfig = config.get('Customer.dbConfig');\r\ndb.connect(dbConfig, ...);\r\n\r\nif (config.has('optionalFeature.detail')) {\r\n  const detail = config.get('optionalFeature.detail');\r\n  //...\r\n}\r\n```\r\n\r\n`config.get()` will throw an exception for undefined keys to help catch typos and missing values.\r\nUse `config.has()` to test if a configuration value is defined.\r\n\r\n**Start your app server:**\r\n\r\n```shell\r\n$ export NODE_ENV=production\r\n$ node my-app.js\r\n```\r\n\r\nRunning in this configuration, the `port` and `dbName` elements of `dbConfig`\r\nwill come from the `default.json` file, and the `host` element will\r\ncome from the `production.json` override file.\r\n\r\nArticles\r\n--------\r\n\r\n* [Configuration Files](https://github.com/node-config/node-config/wiki/Configuration-Files)\r\n  * [Special features for JavaScript configuration files](https://github.com/node-config/node-config/wiki/Special-features-for-JavaScript-configuration-files)\r\n* [Common Usage](https://github.com/node-config/node-config/wiki/Common-Usage)\r\n* [Environment Variables](https://github.com/node-config/node-config/wiki/Environment-Variables)\r\n* [Reserved Words](https://github.com/node-config/node-config/wiki/Reserved-Words)\r\n* [Command Line Overrides](https://github.com/node-config/node-config/wiki/Command-Line-Overrides)\r\n* [Multiple Node Instances](https://github.com/node-config/node-config/wiki/Multiple-Node-Instances)\r\n* [Sub-Module Configuration](https://github.com/node-config/node-config/wiki/Sub-Module-Configuration)\r\n* [Configuring from a DB / External Source](https://github.com/node-config/node-config/wiki/Configuring-from-an-External-Source)\r\n* [Securing Production Config Files](https://github.com/node-config/node-config/wiki/Securing-Production-Config-Files)\r\n* [External Configuration Management Tools](https://github.com/node-config/node-config/wiki/External-Configuration-Management-Tools)\r\n* [Examining Configuration Sources](https://github.com/node-config/node-config/wiki/Examining-Configuration-Sources)\r\n* [Using Config Utilities](https://github.com/node-config/node-config/wiki/Using-Config-Utilities)\r\n* [Upgrading from Config 0.x](https://github.com/node-config/node-config/wiki/Upgrading-From-Config-0.x)\r\n* [Webpack usage](https://github.com/node-config/node-config/wiki/Webpack-Usage)","readmeFilename":"README.md"}