{"_id":"@codesupport/inherited-config","_rev":"3-474e39933a7933047c2a3b0d054db790","name":"@codesupport/inherited-config","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@codesupport/inherited-config","version":"1.0.0","description":"Project configuration system with inheritance support for multiple environments.","main":"./build/index.js","scripts":{"build":"rm -rf ./build && tsc","test":"ts-mocha test/*Test.ts --exit","test:debug":"ts-mocha test/*Test.ts --timeout 999999999 --exit","lint":"eslint src test --ext .js,.ts"},"repository":{"type":"git","url":"git+https://github.com/codesupport/inherited-config.git"},"keywords":["config","inherited","environments","json"],"author":{"name":"The CodeSupport Community"},"license":"MIT","bugs":{"url":"https://github.com/codesupport/inherited-config/issues"},"homepage":"https://github.com/codesupport/inherited-config#readme","engines":{"node":">=16.6.0","npm":">=7.0.0"},"devDependencies":{"@types/chai":"^4.3.0","@types/mocha":"^9.0.0","@types/node":"^17.0.8","@types/sinon":"^10.0.6","@typescript-eslint/eslint-plugin":"^5.9.0","@typescript-eslint/parser":"^5.9.0","chai":"^4.3.4","eslint":"^8.6.0","eslint-config-codesupport":"^1.0.2","sinon":"^12.0.1","ts-mocha":"^8.0.0","ts-node":"^10.4.0","typescript":"^4.5.4"},"gitHead":"5aa69690bc5a6430f437ba817c7ba165d0271e45","_id":"@codesupport/inherited-config@1.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-VML3WYU6i5DpYm1KDZdGcdXBWH6Vlzdmw+T0/UvjNpR+6HE7v33dclWV+RcngMQ5H+MszzHjICjheHPvog4gnQ==","shasum":"3b9c274ea12549fdd8b1efc71db1068a572832ad","tarball":"https://registry.npmjs.org/@codesupport/inherited-config/-/inherited-config-1.0.0.tgz","fileCount":18,"unpackedSize":10308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2JUcCRA9TVsSAnZWagAAfesQAINiIVmjFML728nirtpV\nxUvef1nKmhq1bPW+r3BC7uZPR7LHLILJH4SR3Ll3b77OlDcYyr/6UCHJ/naF\nhGBzEaSYeOYbqfNGJPBUeZ5c3NRj/Zf8fFbfk0FGjiYkcfkMCqzxse7qTWTM\nr0ORnIDXy3UB7iYBj/hnAI4XKs9id0ANObshRBuXKzkMxuuRwHYOL7s7lPbK\nJCAz7wIXixG4oteVT/eT2gx/NPWDl8ixZ9ZNPxLDhZgtmANh1QZULsl2f22v\n1NfWUQvCAFK+p3pux9CQpTL37VagUjr4Z8rkeSNEkbqNVv4yUyaK1fmleBD+\nPnn0PUM2XhKteuL1E9H6kqhdf3yuHglgv/B4jNJw3XzqoqQpGx8TUuswXvt/\nrGblPihf0a1OxSa8UixwEkBADd+9oWVTfw7aeJnU11e8cSyIFa7wZbR04NmJ\n+ONvjrZ45B0PVpMk0khFXiq/ZXCu1s+bqc+sXdSfTwQviM1GKwTvCMwZdhL7\nVBNr12GKkeBD7+0tCkxlkxwvqnSN7WHv/YAlcbzh2iR+pNmx1E3m2vgCG8ib\ntB1Rjx4mjiHMrfw/x9U+0QDzrONwLEIV2bOjsUq0M0is52RLEFQUQL/gFtnT\nzZo5kzUJZfW+11IWvndED5ga2QR0uKrVUWmMf8r+G+FaBhpyIUvAw53rE1VZ\nYWO/\r\n=6VT9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnhM5uPLGq+0c+VMyz6CIt0l5+EBKvntTiN9ABK1SFBQIhAMnECO2bVhesOssfSjY0IxIk2mDKg4IyLAwf6bkRszi7"}]},"_npmUser":{"name":"lambocreeper","email":"lambocreeper@gmail.com"},"directories":{},"maintainers":[{"name":"lambocreeper","email":"lambocreeper@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inherited-config_1.0.0_1641583900735_0.5550626224861042"},"_hasShrinkwrap":false},"1.0.1":{"name":"@codesupport/inherited-config","version":"1.0.1","description":"Project configuration system with inheritance support for multiple environments.","main":"./build/index.js","scripts":{"build":"rm -rf ./build && tsc","test":"ts-mocha test/*Test.ts --exit","test:debug":"ts-mocha test/*Test.ts --timeout 999999999 --exit","lint":"eslint src test --ext .js,.ts"},"repository":{"type":"git","url":"git+https://github.com/codesupport/inherited-config.git"},"keywords":["config","inherited","environments","json"],"author":{"name":"The CodeSupport Community"},"license":"MIT","bugs":{"url":"https://github.com/codesupport/inherited-config/issues"},"homepage":"https://github.com/codesupport/inherited-config#readme","engines":{"node":">=16.6.0","npm":">=7.0.0"},"devDependencies":{"@types/chai":"^4.3.0","@types/mocha":"^9.0.0","@types/node":"^17.0.8","@types/sinon":"^10.0.6","@typescript-eslint/eslint-plugin":"^5.9.0","@typescript-eslint/parser":"^5.9.0","chai":"^4.3.4","eslint":"^8.6.0","eslint-config-codesupport":"^1.0.2","sinon":"^12.0.1","ts-mocha":"^8.0.0","ts-node":"^10.4.0","typescript":"^4.5.4"},"gitHead":"5aa69690bc5a6430f437ba817c7ba165d0271e45","_id":"@codesupport/inherited-config@1.0.1","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-u8ro62zP44LDvTX0QzJkICO/812ZPo6zB0WyNn3Mtd60VNYjIM593L/l4Mag5Enq9JvsHm0RZfUKBH5+m04Adg==","shasum":"1c88824deea491f30b50490bc2df79c7a247d616","tarball":"https://registry.npmjs.org/@codesupport/inherited-config/-/inherited-config-1.0.1.tgz","fileCount":3,"unpackedSize":3932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2JamCRA9TVsSAnZWagAAnBYP/2lSjTc3aVhXv8uJmWkN\nOl5PUuZJxcjT0mKRqrU2Avv8kD9qY8as3z1dzpfWYKStOsxPh++QwZzJTmRN\n9pc+yY/UBBO4KzAw+FEmWHU3dCcL9BXd3Up4Or24PThSnSq79E0yDyFfruwj\nGHhOVKLyg9fYr6fX+McnWZIV7zmSTY5RbmGpL2IAyo/A1iwqXPyhM6yZc0wl\n9xhArkZeFNd5npkiLn7v2A+Dlx5u4RdOD1Dm2oTWScgR42evAbMKWNbIf953\neMJ4FT4FLiAZEO2prSx86eVr2SieM2BFNrrqwhv8msH9NGAMoFXjxP5Fc+vS\nSvnYb9B+CHn3el7hIE2MtsS8FcxXovF/wr0GBqtm5hZTV9ZCejv+KtuJIWFg\nmNuzxAHakFe+JGFf6VzksrXBRlxBRg8N2Kze1QALXTfow9YTYFP3X13KH2c1\nPtRH7yIp+l+/23rsZTFlsyEQp/gcCgO39jJcHxjHLMXx68RPgaacO0g3G6Ci\nDoxmjMQGd3Lmul3tJxMcJ8qqoaONb+50x9lvzbxzCjnnFk90qmf8d0nGmOc2\nAmEgmWDE+aECggeXWYmWZb1uftV2C1pTG6j7YHND3/k6ydUiYao+Mz4gwuK5\nJwoRBT4XNqK/a7xf/e1XHkYJD0hGp0XGzChA0F3B/ZYPcK35DHZT6GiFE02/\nZznW\r\n=RVPD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvnxVJFPSiGCn9f13hIEuvD9JIA+JlbhC+WCFXZgb99wIhANe2a41bsoBCCNL9q4ETF/XQuxp6aCsLVbHKuTXBWW4b"}]},"_npmUser":{"name":"lambocreeper","email":"lambocreeper@gmail.com"},"directories":{},"maintainers":[{"name":"lambocreeper","email":"lambocreeper@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inherited-config_1.0.1_1641584294544_0.07149442209598034"},"_hasShrinkwrap":false},"1.0.2":{"name":"@codesupport/inherited-config","version":"1.0.2","description":"Project configuration system with inheritance support for multiple environments.","main":"./build/index.js","scripts":{"build":"rm -rf ./build && tsc","test":"ts-mocha test/*Test.ts --exit","test:debug":"ts-mocha test/*Test.ts --timeout 999999999 --exit","lint":"eslint src test --ext .js,.ts"},"repository":{"type":"git","url":"git+https://github.com/codesupport/inherited-config.git"},"keywords":["config","inherited","environments","json"],"author":{"name":"The CodeSupport Community"},"license":"MIT","bugs":{"url":"https://github.com/codesupport/inherited-config/issues"},"homepage":"https://github.com/codesupport/inherited-config#readme","engines":{"node":">=16.6.0","npm":">=7.0.0"},"devDependencies":{"@types/chai":"^4.3.0","@types/mocha":"^9.0.0","@types/node":"^17.0.8","@types/sinon":"^10.0.6","@typescript-eslint/eslint-plugin":"^5.9.0","@typescript-eslint/parser":"^5.9.0","chai":"^4.3.4","eslint":"^8.6.0","eslint-config-codesupport":"^1.0.2","sinon":"^12.0.1","ts-mocha":"^8.0.0","ts-node":"^10.4.0","typescript":"^4.5.4"},"gitHead":"5aa69690bc5a6430f437ba817c7ba165d0271e45","_id":"@codesupport/inherited-config@1.0.2","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-IuVxRuTUj0Ck2rRN5PpN6wi+ZQSJIKY9J+B2HVw1kguBtjhQDZVpAH4GwVms2aG+6/xLw7szVIiGvqzzl85vSw==","shasum":"5d2291374cea5fb311c6b550fe1c3820f9befc10","tarball":"https://registry.npmjs.org/@codesupport/inherited-config/-/inherited-config-1.0.2.tgz","fileCount":5,"unpackedSize":6744,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2JbACRA9TVsSAnZWagAAZ3AP/Riws2ozGAc7BtKPqr/J\nzvDpSEaWigns/LNQAc9oqt00/d7JUjkAKfI76MjtI3maRx6tf1ozbKnFUdDp\nTZtK3Ix++/Sqi69FRvP+pL9e9R8IJIQXFQQCHEfuvpcrCQWRK53U7zC59Ey9\n5oThXC7OXYwZVL9Nss1sllBXz1ixQdiw4l2hFSBsYQkj/lRDY1XUUtJNb4Fq\n7cyr5EFueLEkVhi94tVTLAkF0B1vcxy6/BCrwlQGbA0dmofGv6hhfhnVihDr\nbqrRXe63tOYeJxyO7WzRq06D9YcE1WU0l3EnMvqELC88RTs6kXRXu90BMJHf\nz39RebyVtwhLk1rrW8xrgIAATeqpFid9N7xLTlMtb2Pyt/U2snH9Qnk4rb1b\n85tZFWPUjCaL/3NcMR8PqBrsyFZLse0jK3JzsdspLuBmcLn77qu7AZ7/Pr00\nQwdeROw18xzYzRrZa8b2rr95BjDoCHTctrT1R7yVjT81Z7uLJFXQJtEkVqz1\nGmnQ1UkMIG+HJ4qy0KfqBU1RezY56d7HMIwZW9PgUP1VT2WHVHezGhuE+yuz\nHAvdcRi2gTGOt9YXnu5IE8EYuJJD3QsZfB+KvbROaV0O3iH9mA36XA7Fgt6b\nN0mW6evaKddoGBNOb9y8u8L7LY+gwV/mTkz3ws3Rehu0GIU3Xo6A+LzbJxIW\nMJrQ\r\n=dtPp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG96bvMk7euy53LUADeFj3i7aQ7mNWMjsT+wopa24w03AiEAvZC2rgeq6pRcW7EWNeK5J7YfHAI8cuZWiHIsVuko5Uw="}]},"_npmUser":{"name":"lambocreeper","email":"lambocreeper@gmail.com"},"directories":{},"maintainers":[{"name":"lambocreeper","email":"lambocreeper@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inherited-config_1.0.2_1641584320708_0.9190860663723566"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-07T19:31:40.661Z","1.0.0":"2022-01-07T19:31:40.888Z","modified":"2022-04-05T00:06:48.044Z","1.0.1":"2022-01-07T19:38:14.690Z","1.0.2":"2022-01-07T19:38:40.863Z"},"maintainers":[{"name":"lambocreeper","email":"lambocreeper@gmail.com"}],"description":"Project configuration system with inheritance support for multiple environments.","homepage":"https://github.com/codesupport/inherited-config#readme","keywords":["config","inherited","environments","json"],"repository":{"type":"git","url":"git+https://github.com/codesupport/inherited-config.git"},"author":{"name":"The CodeSupport Community"},"bugs":{"url":"https://github.com/codesupport/inherited-config/issues"},"license":"MIT","readme":"# Inherited Config\n\n## About\nThis repository contains the code for Inherited Config - a configuration library with inheritance support for multiple environments for TypeScript projects.\n\n## Usage\n1. Install the package using `npm i @codesupport/inherited-config`\n2. In the entry point of your project add the following code:\n```ts\nimport InheritedConfig from \"@codesupport/inherited-config\";\n\nconst config = new InheritedConfig();\n```\n3. Use `config.getValue()` to get a value from the config, for example:\n```ts\nif (config.getValue<boolean>(\"ENABLE_LOGS\")) {\n    console.log(\"Logs are enabled.\");\n}\n```\n\nIf your `config.json` and corresponding environment based config files are not in the root of your project you can change the path InheritedConfig looks at by using the `path` option.\nFor example, if your `config.json` is within the `src` directory you can do:\n```ts\nimport InheritedConfig from \"@codesupport/inherited-config\";\n\nconst config = new InheritedConfig({\n    path: \"src\"\n});\n```\n\nIf you're having problems with InheritedConfig reading your config files you can enable debug logging:\n```ts\nimport InheritedConfig from \"@codesupport/inherited-config\";\n\nconst config = new InheritedConfig({\n    log: true\n});\n```\n\n## Scripts\n- To build the source code use `npm run build`\n- To test the code use `npm test`\n- To lint the code use `npm run lint`\n\n**Any Questions?** Feel free to mention @LamboCreeper#6510 in the [CodeSupport Discord](https://discord.gg/Hn9SETt).","readmeFilename":"README.md"}