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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47f96c1227
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "94-fbd191f37885f54a", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf479a358c2c
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "83-a2c52e15af01e332", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf475afa5941
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "78-f6dcd9b41efbdceb", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf470be0be02
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "75-68b8703f4d5da9ed", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47c9e2ccd2
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "72-3c6a228fdabccff7", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4770b2ef18
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "71-605fec592e84e384", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf470125cbc0
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "69-23192c61c1105442", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf474a2318c5
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "63-c07c0c047bdaff5a", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4736f9abcf
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "60-d9fa324e8f9eaff8", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4748a975df
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "56-32cf49fc90e61627", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf475f04edcb
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "53-f34ec63419b27cd7", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf470fc0ae67
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "49-64717bb17a8af9e5", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47e3faa356
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "45-e3349c3839b41998", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf474839dc4e
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "46-21e233d744961db5", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47c63b7ac8
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "3-549008fcaee78a90", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf473a127213
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "2-1e17ab0dfae8ce59", "_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": {} }
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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47f5418482
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "98-344b97792aba8f3a", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4777ea7a57
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "95-7a8ae5ee10de83d7", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf479a358c2c
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "83-a2c52e15af01e332", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf475afa5941
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "78-f6dcd9b41efbdceb", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf478eb963ec
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "74-e0557d73a574972f", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4770b2ef18
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "71-605fec592e84e384", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf47c9e2ccd2
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "72-3c6a228fdabccff7", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf478cbd0df1
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "68-90a9e17cb54d9cd7", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf474a2318c5
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "63-c07c0c047bdaff5a", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4736f9abcf
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "60-d9fa324e8f9eaff8", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf4748a975df
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "56-32cf49fc90e61627", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf475f04edcb
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "53-f34ec63419b27cd7", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf475b12ebd3
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "50-e0b69cc697bdfa01", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf478f6b810a
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "43-1f187c4daa4a7872", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf472d9b0cbf
{ "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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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://jirjirak.net/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": "44-49e0dea2ab91080d", "_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": {} }
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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf478bc4eb4b
{ "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": "http://jirjirak.net/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": "http://jirjirak.net/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": "http://jirjirak.net/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": "http://jirjirak.net/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": "2-1e17ab0dfae8ce59", "_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: b18befd9dd6536aa30550de51a011a7efe68809c29c5f5e8858bbf470f80576d
{ "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": "http://jirjirak.net/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": "http://jirjirak.net/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": "http://jirjirak.net/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": "http://jirjirak.net/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": "1-bf00276d909110ed", "_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": {} }