Caddy
tcp/443
A JSON configuration file has been found at config.json
.
It may contains application configuration such as credentials.
False positive might happen when hitting a JSON API endpoint.
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4721993491
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "104-77011110fbaf0801", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47e580593d
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "102-1957d16e807bf8c0", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47bce16838
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "101-41b82da186aeaa1b", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf472ecdedbe
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "100-2ca0bc2bfb489a3a", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47731e5557
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "99-3f05188e481c476b", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4755402b74
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "98-d3d3181114672ab5", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4764f85cb9
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "97-60101bc066d5bd89", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47e0db6999
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "96-f276a30cb91f2a5b", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47f9df7bb7
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "95-371e7d99eedba4e8", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47d200dad2
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "94-237def477e646e55", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47899e4f7d
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "93-d112c08e552d3a0c", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf478556c4b8
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "92-3e27b563ab500350", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4700f2f5e5
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "91-b6183468a09d8a6f", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf476d5276f8
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "90-11b62b25d1dcc31a", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf478d8f544f
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "89-dc6797bdfc178645", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4706d5240b
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "88-bf459fe82f768575", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47c9285a08
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "87-29f4167a0ab64925", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4760121a72
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "86-52c4515ea3b61939", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47ba96c7bc
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "85-47d2b5750d92db17", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4769650944
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "84-7583ae154d1cb6f3", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf475300708b
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "83-95e471c4055b980c", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf476dedbc16
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "82-0b3d71bd57bb841d", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47a484e001
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "81-e76537100c2d9d7e", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47a9609652
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "80-c1e0aff2f248cd72", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47c536069f
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "79-b098191befde7bec", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf471bfb8a58
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "32-f7aa638f6a5da5e2", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47a5c66bd2
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "31-c4c2d603b5430aa5", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47f79c84fe
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "30-a28b91727812e9ba", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4778e63068
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "29-cf6d56a7e1135503", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47ed6853ed
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "28-5dcd0f4d611031cd", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47e487e437
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "27-ec61fc56dbfce8f3", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47ec11ea51
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "26-1a7ea0d0f6398f08", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47507a4973
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "25-d0a954b77b6d904f", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf470fa9b92f
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "24-38d3382c4722c13c", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47eb20050a
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "23-eef6e7db1f3d5bb8", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf476d488178
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "22-d7f73e408dd3cceb", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47cc50cfa2
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "21-3572ae2a7f0e97f3", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4782d6bc18
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "20-a84d462bb7a7b2d4", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4748b3503d
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "19-5b5d19ab9a559230", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47afc7dad9
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "18-acf70d0dc8f74cd8", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47b5aeaa43
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "17-e4b1ccf1534e4cae", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf472b5582cc
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "16-c895b38f1285207f", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47d4fbc877
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "15-1383f6d1092c46f9", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47c1aa8bb1
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "14-a124f96a98514740", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4752c92e21
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "13-155c6bbf8b135901", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4770ec9249
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "11-8730f19d19b2f5e1", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf470a6985df
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "10-cca3a122bd79dae8", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47a133fa00
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "7-2b030757eb86c375", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47c23bdeee
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-08-28T08:46:02.296Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "3-131833a032eaeacc", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Fingerprint: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf478eab85cc
{ "name": "config.json", "versions": { "0.0.1": { "version": "0.0.1", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": "https://github.com/bulyshko/config.json/issues", "main": "./lib/config.js", "dependencies": { "nconf": "0.6.7" }, "devDependencies": { "mocha": "1.9.0" }, "scripts": { "test": "mocha test/*-test.js" }, "_id": "config.json@0.0.1", "dist": { "shasum": "3b5cf4feedc246e5464de3e3404e084280ff045d", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.1.tgz", "integrity": "sha512-FSPsWzk2JYowOd/q55LUzNoET2UnRijM6dCxHGu27WEqLiS/AfBf4mt0CW25DxmiCSSAlsErznpgJ5VxK8D+4Q==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEYCIQCWF48yPMURQ+pmK8MvklWdtZS50m72uDPfYV50eJyy/gIhAPuQsZfFEd+sFJ+oZIkh3xh5jyR53nIALpGLYXeHzbrD" } ] }, "_from": ".", "_npmVersion": "1.2.17", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.2": { "version": "0.0.2", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "~0.6.9" }, "devDependencies": { "mocha": "~1.17.1" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.2", "dist": { "shasum": "9c446cbba8f234d95b003c8fa812772fdc69b3ca", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.2.tgz", "integrity": "sha512-/Rujn+/J9X1snDBg22Grux5tQqEo7/yEUMaqWLVMlSvNmXWcbUzbVnXVh2PUpP0wHPX/p+19ltRAEME/wOnSKQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIAni+iD8gse0uCxV+zuJvaIq5BeO79EOdGe35A+uxYBrAiEAlUgqUFaF90EM347Dx6UdXF1s0F//1cpeU4hvgBrvgzc=" } ] }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.3": { "version": "0.0.3", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "http://romualdbulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.6.9" }, "devDependencies": { "mocha": "1.18.2" }, "scripts": { "test": "mocha test/*-test.js" }, "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.3", "dist": { "shasum": "5a12471f3166b505e2df7a9d1bc8372cadd24e67", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.3.tgz", "integrity": "sha512-vMP8dmpjdKQXICoA8gBtKda0izaz50HK/d9sFcu6Nbis90kXGInbMhq9CxdPzo0OjptHyIYx0w+mXqPLlAOD4w==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEUCIEiyjZSuJqRuEtkOjxPeoMNcIaBv61ytOANOLVHTRjztAiEA6z/c5cuUFx6xuEQvopvBPXbMuWAt2DHrvDN6aNBYh/o=" } ] }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "directories": {}, "contributors": [] }, "0.0.4": { "version": "0.0.4", "name": "config.json", "description": "nconf wrapper that simplifies work with environment specific configuration files.", "keywords": [ "configuration", "config", "json", "nconf", "wrapper" ], "author": { "name": "Romuald Bulyshko", "email": "romuald@bulyshko.com", "url": "https://bulyshko.com" }, "repository": { "type": "git", "url": "https://github.com/bulyshko/config.json" }, "bugs": { "url": "https://github.com/bulyshko/config.json/issues" }, "main": "./lib/config.js", "dependencies": { "nconf": "0.7.1" }, "devDependencies": { "mocha": "2.2.1" }, "scripts": { "test": "mocha test/*-test.js" }, "gitHead": "f5f578629cb7e0cdc6fd0b3a5786cd7a2e7b6dba", "homepage": "https://github.com/bulyshko/config.json", "_id": "config.json@0.0.4", "_shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "_from": ".", "_npmVersion": "2.0.0-beta.0", "_npmUser": { "name": "bulyshko", "email": "romuald@bulyshko.com" }, "maintainers": [ { "name": "bulyshko", "email": "romuald@bulyshko.com" } ], "dist": { "shasum": "dc0250105dd984888c0372b2f4cabbd8a2fd1afb", "tarball": "https://npm.kemperhosting.com/config.json/-/config.json-0.0.4.tgz", "integrity": "sha512-+DLkKk1/j13Pn1ZH2306KcI5aMrvbXNXFW1eWxYqjFuZaUfw1pszolMo/wnc43kxakidJNbjwcrrudFATAYFdQ==", "signatures": [ { "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA", "sig": "MEQCIA/W4BSbjyxr+wV/azYmYJvcDz280Hd2/gFArpLrkmO6AiB1pPAq8O4baNiOkRLyh99fOn80DwWH8C7dpiBGd+OjpQ==" } ] }, "directories": {}, "contributors": [] } }, "time": { "modified": "2022-06-13T21:02:19.214Z", "created": "2013-04-05T20:03:34.240Z", "0.0.1": "2013-04-05T20:03:37.972Z", "0.0.2": "2014-01-29T13:40:21.204Z", "0.0.3": "2014-04-01T05:03:40.165Z", "0.0.4": "2015-03-21T10:13:46.277Z" }, "users": {}, "dist-tags": { "latest": "0.0.4" }, "_rev": "2-9d4d000f0e8e5ba8", "_id": "config.json", "readme": "# config.json\n\n[nconf][nconf] wrapper that simplifies work\nwith environment specific configuration files.\n\n[![Build Status][build]][travis] [![Dependency Status][dependency]][david]\n\n**config.json** is easy to use; it:\n\n- loads the default configuration file;\n- loads environment specific configuration file and overrides defaults;\n\nand then:\n\n- uses environment variables;\n- and command-line arguments to override data from configuration files.\n\n## Installation\n\n```\nnpm install config.json\n```\n\n## Usage\n\nThe top-level of `config.json` is a function that loads configuration file with the given `filepath`.\n\n### Create default configuration file\n\n```\nvi sample.json\n```\n\n```json\n{\n \"domain\": \"www.example.com\",\n \"mongodb\": {\n \"host\": \"localhost\",\n \"port\": 27017\n }\n}\n```\n\n### Create environment specific configuration file\n\n```\nvi sample.development.json\n```\n\n```json\n{\n \"domain\": \"dev.example.com\"\n}\n```\n\n**Note:** Environment specific configuration files should be in the same directory as the default one.\n\n### Test config.json in action\n\n```\nvi sample.js\n```\n\n```js\nvar config = require('config.json')('./sample.json');\n\nconsole.log(\"domain:\", config.domain);\nconsole.log(\"mongodb:\\n\",\n \"host:\", config.mongodb.host, \"\\n\",\n \"port:\", config.mongodb.port);\n```\n\nRun the above script:\n\n```\nNODE_ENV=development node ./sample.js --mongodb:host \"dharma.mongohq.com\" --mongodb:port 10065\n```\n\nThe output will be:\n\n```\ndomain: dev.example.com\nmongodb:\n host: dharma.mongohq.com\n port: 10065\n```\n\n### Load configuration for the specific environment\n\nEnvironment can be set by passing `env` argument:\n\n```js\nvar developmentConfig = require('config.json')('./sample.json', 'development');\nvar productionConfig = require('config.json')('./sample.json', 'production');\n```\n\n### One more thing...\n\n`filepath` can be empty if your configuration file is in the current working directory of the process and is called **config.json**.\n\n## License\n\nReleased under the [MIT license][license].\n\n[nconf]:https://github.com/flatiron/nconf\n[license]:https://raw.github.com/bulyshko/config.json/master/LICENSE\n[build]:https://travis-ci.org/bulyshko/config.json.svg?branch=master\n[travis]:https://travis-ci.org/bulyshko/config.json\n[dependency]:https://david-dm.org/bulyshko/config.json.svg?theme=shields.io\n[david]:https://david-dm.org/bulyshko/config.json", "_attachments": {} }
Open service 207.180.178.149:443 · npm.kemperhosting.com
2024-09-14 16:53
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Security-Policy: connect-src 'self' Content-Type: text/html; charset=utf-8 Date: Sat, 14 Sep 2024 16:53:18 GMT Etag: W/"51f-UOkY2Z75ZV+UNOyBkejtvWpQlD8" Server: Caddy Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: deny X-Powered-By: verdaccio/4.4.2 X-Xss-Protection: 1; mode=block Content-Length: 1311 Connection: close Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <title> Verdaccio </title> <link rel="icon" type="image/png" href="https://npm.kemperhosting.com/-/static/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('{"uri":"https://npm.kemperhosting.com","protocol":"https","host":"npm.kemperhosting.com","base":"https://npm.kemperhosting.com","primaryColor":"","title":"Verdaccio","scope":""}'); window.VERDACCIO_BASENAME = 'undefined'; window.VERDACCIO_API_URL = 'https://npm.kemperhosting.com/-/verdaccio/'; window.VERDACCIO_SCOPE = ''; window.VERDACCIO_LOGO = ''; window.VERDACCIO_PRIMARY_COLOR = ''; window.VERDACCIO_VERSION = '4.4.2'; </script> <link rel="shortcut icon" href="/-/static/favicon.ico"><link href="/-/static/0.style.b3d2b69b057068c678ca.css" rel="stylesheet"></head> <body class="body"> <div id="root"></div> <script type="text/javascript" src="/-/static/manifest.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/vendors.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/main.fb0af8f2e73d49626887.js"></script></body> </html>
Open service 207.180.178.149:443 · npm.kemperhosting.com
2024-09-12 16:53
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Security-Policy: connect-src 'self' Content-Type: text/html; charset=utf-8 Date: Thu, 12 Sep 2024 16:53:10 GMT Etag: W/"51f-UOkY2Z75ZV+UNOyBkejtvWpQlD8" Server: Caddy Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: deny X-Powered-By: verdaccio/4.4.2 X-Xss-Protection: 1; mode=block Content-Length: 1311 Connection: close Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <title> Verdaccio </title> <link rel="icon" type="image/png" href="https://npm.kemperhosting.com/-/static/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('{"uri":"https://npm.kemperhosting.com","protocol":"https","host":"npm.kemperhosting.com","base":"https://npm.kemperhosting.com","primaryColor":"","title":"Verdaccio","scope":""}'); window.VERDACCIO_BASENAME = 'undefined'; window.VERDACCIO_API_URL = 'https://npm.kemperhosting.com/-/verdaccio/'; window.VERDACCIO_SCOPE = ''; window.VERDACCIO_LOGO = ''; window.VERDACCIO_PRIMARY_COLOR = ''; window.VERDACCIO_VERSION = '4.4.2'; </script> <link rel="shortcut icon" href="/-/static/favicon.ico"><link href="/-/static/0.style.b3d2b69b057068c678ca.css" rel="stylesheet"></head> <body class="body"> <div id="root"></div> <script type="text/javascript" src="/-/static/manifest.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/vendors.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/main.fb0af8f2e73d49626887.js"></script></body> </html>
Open service 207.180.178.149:443 · npm.kemperhosting.com
2024-09-10 20:58
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Security-Policy: connect-src 'self' Content-Type: text/html; charset=utf-8 Date: Tue, 10 Sep 2024 20:58:15 GMT Etag: W/"51f-UOkY2Z75ZV+UNOyBkejtvWpQlD8" Server: Caddy Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: deny X-Powered-By: verdaccio/4.4.2 X-Xss-Protection: 1; mode=block Content-Length: 1311 Connection: close Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <title> Verdaccio </title> <link rel="icon" type="image/png" href="https://npm.kemperhosting.com/-/static/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('{"uri":"https://npm.kemperhosting.com","protocol":"https","host":"npm.kemperhosting.com","base":"https://npm.kemperhosting.com","primaryColor":"","title":"Verdaccio","scope":""}'); window.VERDACCIO_BASENAME = 'undefined'; window.VERDACCIO_API_URL = 'https://npm.kemperhosting.com/-/verdaccio/'; window.VERDACCIO_SCOPE = ''; window.VERDACCIO_LOGO = ''; window.VERDACCIO_PRIMARY_COLOR = ''; window.VERDACCIO_VERSION = '4.4.2'; </script> <link rel="shortcut icon" href="/-/static/favicon.ico"><link href="/-/static/0.style.b3d2b69b057068c678ca.css" rel="stylesheet"></head> <body class="body"> <div id="root"></div> <script type="text/javascript" src="/-/static/manifest.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/vendors.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/main.fb0af8f2e73d49626887.js"></script></body> </html>
Open service 207.180.178.149:443 · npm.kemperhosting.com
2024-09-08 20:12
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Security-Policy: connect-src 'self' Content-Type: text/html; charset=utf-8 Date: Sun, 08 Sep 2024 20:11:59 GMT Etag: W/"51f-UOkY2Z75ZV+UNOyBkejtvWpQlD8" Server: Caddy Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: deny X-Powered-By: verdaccio/4.4.2 X-Xss-Protection: 1; mode=block Content-Length: 1311 Connection: close Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <title> Verdaccio </title> <link rel="icon" type="image/png" href="https://npm.kemperhosting.com/-/static/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('{"uri":"https://npm.kemperhosting.com","protocol":"https","host":"npm.kemperhosting.com","base":"https://npm.kemperhosting.com","primaryColor":"","title":"Verdaccio","scope":""}'); window.VERDACCIO_BASENAME = 'undefined'; window.VERDACCIO_API_URL = 'https://npm.kemperhosting.com/-/verdaccio/'; window.VERDACCIO_SCOPE = ''; window.VERDACCIO_LOGO = ''; window.VERDACCIO_PRIMARY_COLOR = ''; window.VERDACCIO_VERSION = '4.4.2'; </script> <link rel="shortcut icon" href="/-/static/favicon.ico"><link href="/-/static/0.style.b3d2b69b057068c678ca.css" rel="stylesheet"></head> <body class="body"> <div id="root"></div> <script type="text/javascript" src="/-/static/manifest.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/vendors.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/main.fb0af8f2e73d49626887.js"></script></body> </html>
Open service 207.180.178.149:443 · npm.kemperhosting.com
2024-09-06 16:22
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Security-Policy: connect-src 'self' Content-Type: text/html; charset=utf-8 Date: Fri, 06 Sep 2024 16:22:18 GMT Etag: W/"51f-UOkY2Z75ZV+UNOyBkejtvWpQlD8" Server: Caddy Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: deny X-Powered-By: verdaccio/4.4.2 X-Xss-Protection: 1; mode=block Content-Length: 1311 Connection: close Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <title> Verdaccio </title> <link rel="icon" type="image/png" href="https://npm.kemperhosting.com/-/static/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('{"uri":"https://npm.kemperhosting.com","protocol":"https","host":"npm.kemperhosting.com","base":"https://npm.kemperhosting.com","primaryColor":"","title":"Verdaccio","scope":""}'); window.VERDACCIO_BASENAME = 'undefined'; window.VERDACCIO_API_URL = 'https://npm.kemperhosting.com/-/verdaccio/'; window.VERDACCIO_SCOPE = ''; window.VERDACCIO_LOGO = ''; window.VERDACCIO_PRIMARY_COLOR = ''; window.VERDACCIO_VERSION = '4.4.2'; </script> <link rel="shortcut icon" href="/-/static/favicon.ico"><link href="/-/static/0.style.b3d2b69b057068c678ca.css" rel="stylesheet"></head> <body class="body"> <div id="root"></div> <script type="text/javascript" src="/-/static/manifest.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/vendors.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/main.fb0af8f2e73d49626887.js"></script></body> </html>
Open service 207.180.178.149:443 · npm.kemperhosting.com
2024-08-16 21:04
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Security-Policy: connect-src 'self' Content-Type: text/html; charset=utf-8 Date: Fri, 16 Aug 2024 21:04:04 GMT Etag: W/"51f-UOkY2Z75ZV+UNOyBkejtvWpQlD8" Server: Caddy Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: deny X-Powered-By: verdaccio/4.4.2 X-Xss-Protection: 1; mode=block Content-Length: 1311 Connection: close Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <title> Verdaccio </title> <link rel="icon" type="image/png" href="https://npm.kemperhosting.com/-/static/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('{"uri":"https://npm.kemperhosting.com","protocol":"https","host":"npm.kemperhosting.com","base":"https://npm.kemperhosting.com","primaryColor":"","title":"Verdaccio","scope":""}'); window.VERDACCIO_BASENAME = 'undefined'; window.VERDACCIO_API_URL = 'https://npm.kemperhosting.com/-/verdaccio/'; window.VERDACCIO_SCOPE = ''; window.VERDACCIO_LOGO = ''; window.VERDACCIO_PRIMARY_COLOR = ''; window.VERDACCIO_VERSION = '4.4.2'; </script> <link rel="shortcut icon" href="/-/static/favicon.ico"><link href="/-/static/0.style.b3d2b69b057068c678ca.css" rel="stylesheet"></head> <body class="body"> <div id="root"></div> <script type="text/javascript" src="/-/static/manifest.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/vendors.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/main.fb0af8f2e73d49626887.js"></script></body> </html>
Open service 207.180.178.149:443 · npm.kemperhosting.com
2024-08-14 19:14
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Security-Policy: connect-src 'self' Content-Type: text/html; charset=utf-8 Date: Wed, 14 Aug 2024 19:14:33 GMT Etag: W/"51f-UOkY2Z75ZV+UNOyBkejtvWpQlD8" Server: Caddy Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: deny X-Powered-By: verdaccio/4.4.2 X-Xss-Protection: 1; mode=block Content-Length: 1311 Connection: close Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <title> Verdaccio </title> <link rel="icon" type="image/png" href="https://npm.kemperhosting.com/-/static/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('{"uri":"https://npm.kemperhosting.com","protocol":"https","host":"npm.kemperhosting.com","base":"https://npm.kemperhosting.com","primaryColor":"","title":"Verdaccio","scope":""}'); window.VERDACCIO_BASENAME = 'undefined'; window.VERDACCIO_API_URL = 'https://npm.kemperhosting.com/-/verdaccio/'; window.VERDACCIO_SCOPE = ''; window.VERDACCIO_LOGO = ''; window.VERDACCIO_PRIMARY_COLOR = ''; window.VERDACCIO_VERSION = '4.4.2'; </script> <link rel="shortcut icon" href="/-/static/favicon.ico"><link href="/-/static/0.style.b3d2b69b057068c678ca.css" rel="stylesheet"></head> <body class="body"> <div id="root"></div> <script type="text/javascript" src="/-/static/manifest.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/vendors.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/main.fb0af8f2e73d49626887.js"></script></body> </html>
Open service 207.180.178.149:443 · npm.kemperhosting.com
2024-08-12 12:45
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Security-Policy: connect-src 'self' Content-Type: text/html; charset=utf-8 Date: Mon, 12 Aug 2024 12:45:26 GMT Etag: W/"51f-UOkY2Z75ZV+UNOyBkejtvWpQlD8" Server: Caddy Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: deny X-Powered-By: verdaccio/4.4.2 X-Xss-Protection: 1; mode=block Content-Length: 1311 Connection: close Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <title> Verdaccio </title> <link rel="icon" type="image/png" href="https://npm.kemperhosting.com/-/static/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('{"uri":"https://npm.kemperhosting.com","protocol":"https","host":"npm.kemperhosting.com","base":"https://npm.kemperhosting.com","primaryColor":"","title":"Verdaccio","scope":""}'); window.VERDACCIO_BASENAME = 'undefined'; window.VERDACCIO_API_URL = 'https://npm.kemperhosting.com/-/verdaccio/'; window.VERDACCIO_SCOPE = ''; window.VERDACCIO_LOGO = ''; window.VERDACCIO_PRIMARY_COLOR = ''; window.VERDACCIO_VERSION = '4.4.2'; </script> <link rel="shortcut icon" href="/-/static/favicon.ico"><link href="/-/static/0.style.b3d2b69b057068c678ca.css" rel="stylesheet"></head> <body class="body"> <div id="root"></div> <script type="text/javascript" src="/-/static/manifest.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/vendors.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/main.fb0af8f2e73d49626887.js"></script></body> </html>
Open service 207.180.178.149:443 · npm.kemperhosting.com
2024-08-10 18:51
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Security-Policy: connect-src 'self' Content-Type: text/html; charset=utf-8 Date: Sat, 10 Aug 2024 18:50:51 GMT Etag: W/"51f-UOkY2Z75ZV+UNOyBkejtvWpQlD8" Server: Caddy Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: deny X-Powered-By: verdaccio/4.4.2 X-Xss-Protection: 1; mode=block Content-Length: 1311 Connection: close Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <title> Verdaccio </title> <link rel="icon" type="image/png" href="https://npm.kemperhosting.com/-/static/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('{"uri":"https://npm.kemperhosting.com","protocol":"https","host":"npm.kemperhosting.com","base":"https://npm.kemperhosting.com","primaryColor":"","title":"Verdaccio","scope":""}'); window.VERDACCIO_BASENAME = 'undefined'; window.VERDACCIO_API_URL = 'https://npm.kemperhosting.com/-/verdaccio/'; window.VERDACCIO_SCOPE = ''; window.VERDACCIO_LOGO = ''; window.VERDACCIO_PRIMARY_COLOR = ''; window.VERDACCIO_VERSION = '4.4.2'; </script> <link rel="shortcut icon" href="/-/static/favicon.ico"><link href="/-/static/0.style.b3d2b69b057068c678ca.css" rel="stylesheet"></head> <body class="body"> <div id="root"></div> <script type="text/javascript" src="/-/static/manifest.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/vendors.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/main.fb0af8f2e73d49626887.js"></script></body> </html>
Open service 207.180.178.149:443 · npm.kemperhosting.com
2024-08-08 16:31
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Content-Security-Policy: connect-src 'self' Content-Type: text/html; charset=utf-8 Date: Thu, 08 Aug 2024 16:31:33 GMT Etag: W/"51f-UOkY2Z75ZV+UNOyBkejtvWpQlD8" Server: Caddy Vary: Accept-Encoding X-Content-Type-Options: nosniff X-Frame-Options: deny X-Powered-By: verdaccio/4.4.2 X-Xss-Protection: 1; mode=block Content-Length: 1311 Connection: close Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <title> Verdaccio </title> <link rel="icon" type="image/png" href="https://npm.kemperhosting.com/-/static/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('{"uri":"https://npm.kemperhosting.com","protocol":"https","host":"npm.kemperhosting.com","base":"https://npm.kemperhosting.com","primaryColor":"","title":"Verdaccio","scope":""}'); window.VERDACCIO_BASENAME = 'undefined'; window.VERDACCIO_API_URL = 'https://npm.kemperhosting.com/-/verdaccio/'; window.VERDACCIO_SCOPE = ''; window.VERDACCIO_LOGO = ''; window.VERDACCIO_PRIMARY_COLOR = ''; window.VERDACCIO_VERSION = '4.4.2'; </script> <link rel="shortcut icon" href="/-/static/favicon.ico"><link href="/-/static/0.style.b3d2b69b057068c678ca.css" rel="stylesheet"></head> <body class="body"> <div id="root"></div> <script type="text/javascript" src="/-/static/manifest.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/vendors.fb0af8f2e73d49626887.js"></script><script type="text/javascript" src="/-/static/main.fb0af8f2e73d49626887.js"></script></body> </html>