nginx
tcp/443 tcp/80
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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47a69310b6
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "18122-b7952b5d4110177a", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47d7051c5b
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "18111-6b7be22dbe87f120", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf479f6d1bc9
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "17984-5c596fdb3559ec53", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4721c8376e
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "17940-97b3cc040179446e", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47520f5004
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "17777-3fb5bc77056d9eb3", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4771a5be07
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "17610-11aa2c5c767bdb14", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47b8d009c5
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "17502-4fa2c965ead9a0b2", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47696ce86c
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "17357-039ee07217b8b9c4", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4782f9bc75
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "17179-9184feb3bc19a5e8", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47b8af6600
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "17029-0766e647738840ee", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4730a687fb
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "17003-5271f5eb28d0fb8c", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4716e76607
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "16792-676c84361c460258", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf470ac30442
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "16754-c222229498b1cd28", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf472f927513
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "16653-17f6b86916b4c762", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf470ea5fc28
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "16602-ea340482c2e02fff", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf477211d34c
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "16373-d649f574c53c10c3", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf479d038b82
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "16166-656f37af64e4659e", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47b636158b
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "16017-22825cbba9539eec", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4717b80af8
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "15864-1c621ee53b041866", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4733e3fde9
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "15713-2529b75448b729ee", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47c79c9d80
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "15522-2b83319523a88d8b", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf472ac5c707
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "15396-a437a7d90190a015", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47886c7b66
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "15258-a4fc33094171428e", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf478f14070a
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "15225-2436be4bfe3a75fb", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47c1e894d5
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "15050-fc81fc025de3ec46", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4788f6ba27
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "2908-af18cf37ca5d7b83", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47cd564de8
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "2830-580d59081ced1154", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf474553f286
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "2612-926f4e859aa809aa", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47f539b272
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "2506-6f72bdf13e1a5a8a", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4727366db9
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "2392-4f5d7cc037972a75", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47f88c2a58
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "2303-16a7ee52c33d289d", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47e246e949
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "2227-701f9700c8a812ed", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4754abbfb3
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "2171-46fa9f3168cc2d4f", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47a4a5b2c8
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "2001-08e9efe16485f96d", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47b2e7aa96
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1872-309b923cc42c7594", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47ecbfcd78
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1817-5f9d1fa6f9272f32", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47d9e54259
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1744-a9abc638601fa35f", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4702174746
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1576-04b419a973f5fc56", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47689bdcbf
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1462-1257e5d1387f5bbc", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47179a03a5
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1396-1aaaf00f8dcbae56", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf472df33cb2
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1366-923f287860bc2817", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47ed222997
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1284-9d7337071e0a93d9", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47ea84d03f
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1217-690e94017f66b829", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47cfbc6ccf
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1131-950cf5017df6078b", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf474cbefa72
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "1019-bae6df0f5d1d5954", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47093382a1
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "975-66301d304e3c40b0", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4748023ad6
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "933-2e75922315ecb1a2", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4743786c83
{ "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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.smartforge.eu/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": {}, "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "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": "429-71abd76b33e5d74c", "_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: b18befd9dd6536820977d1300977d1300977d1300977d1300977d1300977d130
{"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.smartforge.eu/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","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.smartforge.eu/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","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.smartforge.eu/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","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.smartforge.eu/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","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":"213-572db13ceeba4507","_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: b18befd9dd653682673bd3e4673bd3e4673bd3e4673bd3e4673bd3e4673bd3e4
{"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.smartforge.eu/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","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.smartforge.eu/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","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.smartforge.eu/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","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.smartforge.eu/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","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":"107-f46424fcf140fac2","_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 93.47.200.12:80 · acpolimi.regme.pro
2024-12-22 05:53
HTTP/1.1 301 Moved Permanently Server: nginx Date: Sun, 22 Dec 2024 05:53:31 GMT Content-Type: text/html Content-Length: 178 Connection: close Location: https://acpolimi.regme.pro/ Page title: 301 Moved Permanently <html> <head><title>301 Moved Permanently</title></head> <body bgcolor="white"> <center><h1>301 Moved Permanently</h1></center> <hr><center>nginx</center> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-12-22 05:53
HTTP/1.1 200 OK Server: nginx Date: Sun, 22 Dec 2024 05:53:30 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-12-22 04:56
HTTP/1.1 200 OK Server: nginx Date: Sun, 22 Dec 2024 04:56:46 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-12-20 06:43
HTTP/1.1 200 OK Server: nginx Date: Fri, 20 Dec 2024 06:43:45 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-12-18 23:29
HTTP/1.1 200 OK Server: nginx Date: Wed, 18 Dec 2024 23:29:08 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-12-14 05:00
HTTP/1.1 200 OK Server: nginx Date: Sat, 14 Dec 2024 05:00:41 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-12-12 11:15
HTTP/1.1 200 OK Server: nginx Date: Thu, 12 Dec 2024 11:15:02 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-12-02 17:50
HTTP/1.1 200 OK Server: nginx Date: Mon, 02 Dec 2024 17:51:00 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-11-30 13:22
HTTP/1.1 200 OK Server: nginx Date: Sat, 30 Nov 2024 13:22:34 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-11-28 09:26
HTTP/1.1 200 OK Server: nginx Date: Thu, 28 Nov 2024 09:26:19 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-11-26 23:43
HTTP/1.1 200 OK Server: nginx Date: Tue, 26 Nov 2024 23:43:16 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>
Open service 93.47.200.12:443 · acpolimi.regme.pro
2024-11-20 12:30
HTTP/1.1 200 OK Server: nginx Date: Wed, 20 Nov 2024 12:30:26 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1151 Connection: close Vary: Accept-Encoding X-Powered-By: hidden Access-Control-Allow-Origin: * X-Frame-Options: deny Content-Security-Policy: connect-src 'self' X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block ETag: W/"47f-tpT6n7cc9/KnK/6Kmx9tTAYUy0s" Vary: Accept-Encoding Page title: Verdaccio <!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <base href="https://npm.smartforge.eu/"> <title>Verdaccio</title> <link rel="icon" href="https://npm.smartforge.eu/-/static/favicon.ico"/> <meta name="viewport" content="width=device-width, initial-scale=1" /> <script> window.__VERDACCIO_BASENAME_UI_OPTIONS={"darkMode":false,"basename":"/","base":"https://npm.smartforge.eu/","primaryColor":"#4b5e40","version":"5.25.0","logo":"","flags":{"searchRemote":false,"changePassword":false},"login":true,"pkgManagers":["yarn","pnpm","npm"],"title":"Verdaccio","scope":"","language":"es-US"} </script> </head> <body class="body"> <div id="root"></div> <script defer="defer" src="https://npm.smartforge.eu/-/static/runtime.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/vendors.f5e8e649782e0e6d11b7.js"></script><script defer="defer" src="https://npm.smartforge.eu/-/static/main.f5e8e649782e0e6d11b7.js"></script> </body> </html>