{"_id":"@americanexpress/env-config-utils","_rev":"6-6f024ba9252ecf7d2ce0395edb31d486","name":"@americanexpress/env-config-utils","dist-tags":{"latest":"2.0.4"},"versions":{"2.0.1":{"name":"@americanexpress/env-config-utils","version":"2.0.1","description":"Utilities for runtime configuration validations","main":"index.js","scripts":{"test:lint":"eslint --ignore-path .eslintignore --ext .js,.snap .","test:unit":"jest","test":"npm run test:unit && npm run test:lint","build":"babel src --out-dir lib","prepack":"npm run test && npm run build"},"jest":{"preset":"amex-jest-preset","collectCoverageFrom":["src/**"]},"repository":{"type":"git","url":"git+https://github.com/americanexpress/env-config-utils.git"},"contributors":[{"name":"Andres Escobar","email":"Andres.Escobar@aexp.com","url":"https://github.com/anescobar1991"},{"name":"James Singleton","email":"James.Singleton1@aexp.com"},{"name":"Jimmy King","email":"Jimmy.King@aexp.com","url":"https://github.com/10xLaCroixDrinker"},{"name":"Jonathan Adshead","email":"Jonathan.Adshead@aexp.com","url":"https://github.com/JAdshead"},{"name":"Michael Tobia","email":"Michael.M.Tobia@aexp.com","url":"https://github.com/Francois-Esquire"},{"name":"Michael Tomcal","email":"Michael.A.Tomcal@aexp.com","url":"https://github.com/mtomcal"},{"name":"Stephanie Coates","email":"Stephanie.Coates1@aexp.com","url":"https://github.com/stephaniecoates"},{"name":"Nelly Kiboi","email":"Nelly.J.Kiboi@aexp.com","url":"https://github.com/nellyk"},{"name":"Nickolas Oliver","email":"nickolas.oliver@aexp.com","url":"https://github.com/PixnBits"}],"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.5","@semantic-release/commit-analyzer":"^6.3.3","@semantic-release/git":"^7.0.18","@semantic-release/npm":"^5.3.4","@semantic-release/release-notes-generator":"^7.3.3","amex-jest-preset":"^5.0.0","babel-cli":"^6.24.0","babel-preset-amex":"^1.0.0","eslint":"^5.0.0","eslint-config-amex":"^9.0.0","husky":"^3.0.9","jest":"^23.0.0","rimraf":"^2.6.3","semantic-release":"^15.13.31"},"license":"Apache-2.0","husky":{"hooks":{"pre-commit":"npm test","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/changelog","@semantic-release/git","@semantic-release/npm"],"branch":"master"},"homepage":"https://github.com/americanexpress/env-config-utils","bugs":{"url":"https://github.com/americanexpress/env-config-utils/issues"},"gitHead":"fc2109832297f1b9abce933fb3dc1c50e4010bc1","_id":"@americanexpress/env-config-utils@2.0.1","_nodeVersion":"10.13.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-BlnszKue9jHHIW4NlxUFn3rz2/qcUKPLGM4T/lbHNQQIfok/QyMOrHhAkvzHMJE3fFgBEHyp5VBJM4kChR2gbA==","shasum":"2791b1596ec6f9d537da9349344482a2c2eb2988","tarball":"https://registry.npmjs.org/@americanexpress/env-config-utils/-/env-config-utils-2.0.1.tgz","fileCount":20,"unpackedSize":90166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd2GXJCRA9TVsSAnZWagAAnt8P/2ckwTC9nlGevzqYjVsS\nQgh/Mr2hjTg1c4P19uhBnamzAeRzuYQXFmR/9ojvh4KzOhcZraSXrcclzM2C\nvSLnoh66hR9QRz5HVb+V8+lO6psdCzt5cXE59xPx7BgU1cJJsxA4ccODrwhY\nPo4zAEXttfcAYfZVrdXTc5B8cAM4jRVu82W2YPD/yFVpCKoEWXgGC5Nw5luS\nuHLCOcvJpaYsEwXXlbyozXGDYGxWAq9ixYkR90hH++pRMvzKiyODD+BVHpr8\nG2UxhjnpSiJ1kqL0Rf7xaOCHAwzr41+Q0pI8KKkZIoIawPLEXHLkxmzffZfj\n21t+q/YKm0LiwSgYHcQImWAcJ7p0GbcFfdN8xc5kySI1eMIkNloATAIn+Eg1\nqWKx31HdKF1F2mqV5PSqtLgzV6HwrMB8J3BqfquNg2yCXh4EJLVh/MZk295/\nVr4l8l9zJyjrgEGdfw2vmC5qLn387xDCPfQLmjGcWzRbOOqcOZlTqQyIKPHV\nbkGhxr40k2N+yb+LnKRGrSbNbvm7/b8JyqhL1dFb02ZLN8Eza4KBgLylmQqd\nNqBU93qMYThfehjVdVYvaPp+FgPq69sxSs7tDIkvqE/PXAjppDN5M0nhBfzN\nAv6B3hOtQ26mHdCyUfGiObbmhn4S5eE2gFXhJrIBb0241k9fiosmwU4+BadX\n3ziY\r\n=77UG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa+lDEHjliMEI5fPhPCALfPiwx6AwKqU+ErI4YLYuI2wIgBTvLTXlFHI2LJ+SLJoSbS+nWr9ATjCIQsfnXZW/TzYM="}]},"maintainers":[{"name":"pixnbits","email":"i@pixnbits.org"},{"name":"anescobar1991","email":"anescobar1991@gmail.com"},{"name":"jimmyking","email":"hello@jimmyking.me"},{"name":"jsmartfo","email":"j_smart_foster@hotmail.com"}],"_npmUser":{"name":"jimmyking","email":"hello@jimmyking.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-config-utils_2.0.1_1574462921441_0.38453923301466086"},"_hasShrinkwrap":false},"2.0.2":{"name":"@americanexpress/env-config-utils","version":"2.0.2","description":"Utilities for runtime configuration validations","main":"index.js","scripts":{"clean":"rimraf *.js","prebuild":"npm run clean","test:lint":"eslint --ignore-path .eslintignore --ext .js,.snap .","test:unit":"jest","test":"npm run test:unit && npm run test:lint","build":"babel src --out-dir ./ --copy-files","prepack":"npm run test && npm run build"},"jest":{"preset":"amex-jest-preset","collectCoverageFrom":["src/**"]},"repository":{"type":"git","url":"git+https://github.com/americanexpress/env-config-utils.git"},"contributors":[{"name":"Andres Escobar","email":"Andres.Escobar@aexp.com","url":"https://github.com/anescobar1991"},{"name":"James Singleton","email":"James.Singleton1@aexp.com"},{"name":"Jimmy King","email":"Jimmy.King@aexp.com","url":"https://github.com/10xLaCroixDrinker"},{"name":"Jonathan Adshead","email":"Jonathan.Adshead@aexp.com","url":"https://github.com/JAdshead"},{"name":"Michael Tobia","email":"Michael.M.Tobia@aexp.com","url":"https://github.com/Francois-Esquire"},{"name":"Michael Tomcal","email":"Michael.A.Tomcal@aexp.com","url":"https://github.com/mtomcal"},{"name":"Stephanie Coates","email":"Stephanie.Coates1@aexp.com","url":"https://github.com/stephaniecoates"},{"name":"Nelly Kiboi","email":"Nelly.J.Kiboi@aexp.com","url":"https://github.com/nellyk"},{"name":"Nickolas Oliver","email":"nickolas.oliver@aexp.com","url":"https://github.com/PixnBits"}],"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@semantic-release/changelog":"^3.0.5","@semantic-release/commit-analyzer":"^6.3.3","@semantic-release/git":"^7.0.18","@semantic-release/npm":"^5.3.4","@semantic-release/release-notes-generator":"^7.3.3","amex-jest-preset":"^5.0.0","babel-cli":"^6.24.0","babel-preset-amex":"^1.0.0","eslint":"^5.0.0","eslint-config-amex":"^9.0.0","husky":"^3.0.9","jest":"^23.0.0","rimraf":"^2.6.3","semantic-release":"^15.13.31"},"license":"Apache-2.0","husky":{"hooks":{"pre-commit":"npm test","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/changelog","@semantic-release/git","@semantic-release/npm"],"branch":"master"},"homepage":"https://github.com/americanexpress/env-config-utils","bugs":{"url":"https://github.com/americanexpress/env-config-utils/issues"},"gitHead":"8da0df524cf7af62e6bbe538979610b9361dbf71","_id":"@americanexpress/env-config-utils@2.0.2","_nodeVersion":"10.13.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-knvdZTJYQs66qnyl19XRegq2yICiS0sIH2H2zOUixScnei/DqI9pm45Zag1QmCSjZg6zd/K4I5Yn1P7cc2bnxg==","shasum":"51170d33a190c50d00311449ea15e384c00fe155","tarball":"https://registry.npmjs.org/@americanexpress/env-config-utils/-/env-config-utils-2.0.2.tgz","fileCount":24,"unpackedSize":96761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7owECRA9TVsSAnZWagAATOYQAI81XgGaDRZp6tF86/so\n38x7S9ORnwv/R16sdrxXILSFbvj7VK2B5WKNXjBB+JRM/1d1pXM/gZiXbN14\nusyjCOR8uwyPYG/MN9fnbLH7jXC0kABMCDJEP3KFOmFQBDR9aFY9vLEMFsR/\ncuyC9EoEpqE7DuHuVfzl9DlDA0EOxJRRa2t+QJMyDbpIJ7cOH1jQTb8/CG7R\nLtxjqGk57QvcAGd5zQ+TRiOLOHp5vRFQEh+rSqe8plq2TkjtgDSQwDYV6MeF\nXGN9hbNxGYvCuG7gpJULsZLY5wunMG39hpumUK0YVrcU0qenv7nQHFQWw+fR\nHYjmk6GyKP7cd2D0voSVjJ8aAkNXhKCp5JZTvgx1JBmBXKHYZ0r0T02X6evU\nnnc+R4iCc8WZmPNvLhbnUOOLcvkuMphxZQ3J1Ub1fnX7dMwzf0+FQKAIMPH5\nygGQhnaGJFAHEyEXtB4twdlhARweVMpu4oY6nMYiQc7JTGRwMpzNsQg3wkZ9\nbqBxJQeFvQ5k/nWtS5md1gVxa9MbwM5I0daqaata3xgNuUgVhS2OyS0e3vcy\nNquY50YiH7BauX233vEglbiG6klWML/xZ7z6L1JSfOUdIQtyUC2j99cAK/cw\nDBD9HlvSkpgGBnccLdckLFetP9uD5q4PL414O3ai53WQP7DGPbpGHeWzxt0y\n/DYW\r\n=l6g5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH9AtHgfSiWMU+FLrGDe/PwsMD5Cxf3oznFjKAzFCQLmAiA4mrx0zYhVA+TH/g84zB/li52LaqSLEYAiur45372mCA=="}]},"maintainers":[{"email":"open-source-ops@aexp.com","name":"amexopensource"},{"email":"anescobar1991@gmail.com","name":"anescobar1991"},{"email":"hello@jimmyking.me","name":"jimmyking"},{"email":"j_smart_foster@hotmail.com","name":"jsmartfo"},{"email":"i@pixnbits.org","name":"pixnbits"}],"_npmUser":{"name":"jimmyking","email":"hello@jimmyking.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-config-utils_2.0.2_1575914499788_0.6081331821142966"},"_hasShrinkwrap":false},"2.0.3":{"name":"@americanexpress/env-config-utils","version":"2.0.3","description":"Utilities for runtime configuration validations","main":"index.js","scripts":{"clean":"del *.js !*.config.js","prebuild":"npm run clean","build":"babel src --out-dir ./ --copy-files","test:unit":"jest","test":"npm run test:unit && npm run test:lint","test:git-history":"commitlint --from origin/main --to HEAD","test:lint":"eslint --ignore-path .eslintignore --ext .js,.snap .","test:lockfile":"lockfile-lint -p package-lock.json -t npm -a npm -o https: -c -i","prepack":"npm run test && npm run build","posttest":"npm run test:lockfile && npm run test:git-history"},"jest":{"preset":"amex-jest-preset","collectCoverageFrom":["src/**"]},"repository":{"type":"git","url":"git+https://github.com/americanexpress/env-config-utils.git"},"contributors":[{"name":"Andres Escobar","email":"Andres.Escobar@aexp.com","url":"https://github.com/anescobar1991"},{"name":"James Singleton","email":"James.Singleton1@aexp.com","url":"https://github.com/JamesSingleton"},{"name":"Jamie King","email":"Jamie.King@aexp.com","url":"https://github.com/10xLaCroixDrinker"},{"name":"Jonathan Adshead","email":"Jonathan.Adshead@aexp.com","url":"https://github.com/JAdshead"},{"name":"Michael Tobia","email":"Michael.M.Tobia@aexp.com","url":"https://github.com/Francois-Esquire"},{"name":"Michael Tomcal","email":"Michael.A.Tomcal@aexp.com","url":"https://github.com/mtomcal"},{"name":"Stephanie Coates","email":"Stephanie.Coates1@aexp.com","url":"https://github.com/stephaniecoates"},{"name":"Nelly Kiboi","email":"Nelly.J.Kiboi@aexp.com","url":"https://github.com/nellyk"},{"name":"Nickolas Oliver","email":"nickolas.oliver@aexp.com","url":"https://github.com/PixnBits"}],"devDependencies":{"@babel/cli":"^7.23.4","@commitlint/cli":"^18.2.0","@commitlint/config-conventional":"^17.8.1","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^10.0.4","@semantic-release/git":"^10.0.1","@semantic-release/github":"^9.2.1","@semantic-release/npm":"^10.0.6","@semantic-release/release-notes-generator":"^11.0.7","amex-jest-preset":"^7.0.0","babel-preset-amex":"^4.0.3","del-cli":"^5.1.0","eslint":"^8.53.0","eslint-config-amex":"^16.0.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-jest-dom":"^4.0.3","husky":"^3.0.9","jest":"^29.7.0","lockfile-lint":"^4.12.1","semantic-release":"^21.1.2"},"license":"Apache-2.0","husky":{"hooks":{"pre-commit":"npm test","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"release":{"branches":["+([0-9])?(.{+([0-9]),x}).x","main","next","next-major",{"name":"beta","prerelease":true},{"name":"alpha","prerelease":true}],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/changelog","@semantic-release/npm","@semantic-release/git","@semantic-release/github"]},"homepage":"https://github.com/americanexpress/env-config-utils","bugs":{"url":"https://github.com/americanexpress/env-config-utils/issues"},"_id":"@americanexpress/env-config-utils@2.0.3","gitHead":"82cb1e99e0c7ba6780a7f6b62f4c9cd3668a9abc","_nodeVersion":"18.19.0","_npmVersion":"9.9.0","dist":{"integrity":"sha512-cpd1S+Q8CWQDEKbNOIhzrfTEe+rjHmahqW+OEmU5nMqw4lbE+g4KNikgFIMCi5CJjXfyJfizf/MR6uo5WqYB1Q==","shasum":"ed329c9e8065d23ade9aa620c2acbd547f25d861","tarball":"https://registry.npmjs.org/@americanexpress/env-config-utils/-/env-config-utils-2.0.3.tgz","fileCount":28,"unpackedSize":98251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfUqyLqks6lrxAnBTpkQK8EvD/s+t0PBa6P6wPUmon+AiAbZaD9dek4LVZyS2YVjeZ8yOYFT/eaBNYuFfp+xAgi4g=="}]},"_npmUser":{"name":"amexopensource","email":"open-source-ops@aexp.com"},"directories":{},"maintainers":[{"name":"pixnbits","email":"i@pixnbits.org"},{"name":"anescobar1991","email":"anescobar1991@gmail.com"},{"name":"jsmartfo","email":"j_smart_foster@hotmail.com"},{"name":"amexopensource","email":"open-source-ops@aexp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-config-utils_2.0.3_1705591488301_0.8298984152158664"},"_hasShrinkwrap":false},"2.0.4":{"name":"@americanexpress/env-config-utils","version":"2.0.4","description":"Utilities for runtime configuration validations","main":"index.js","scripts":{"clean":"del *.js !*.config.js","prebuild":"npm run clean","build":"babel src --out-dir ./ --copy-files","test:unit":"jest","test":"npm run test:unit && npm run test:lint","test:git-history":"commitlint --from origin/main --to HEAD","test:lint":"eslint --ignore-path .eslintignore --ext .js,.snap .","test:lockfile":"lockfile-lint -p package-lock.json -t npm -a npm -o https: -c -i","prepack":"npm run test && npm run build","posttest":"npm run test:lockfile && npm run test:git-history"},"jest":{"preset":"amex-jest-preset","collectCoverageFrom":["src/**"]},"repository":{"type":"git","url":"git+https://github.com/americanexpress/env-config-utils.git"},"contributors":[{"name":"Andres Escobar","email":"Andres.Escobar@aexp.com","url":"https://github.com/anescobar1991"},{"name":"James Singleton","email":"James.Singleton1@aexp.com","url":"https://github.com/JamesSingleton"},{"name":"Jamie King","email":"Jamie.King@aexp.com","url":"https://github.com/10xLaCroixDrinker"},{"name":"Jonathan Adshead","email":"Jonathan.Adshead@aexp.com","url":"https://github.com/JAdshead"},{"name":"Michael Tobia","email":"Michael.M.Tobia@aexp.com","url":"https://github.com/Francois-Esquire"},{"name":"Michael Tomcal","email":"Michael.A.Tomcal@aexp.com","url":"https://github.com/mtomcal"},{"name":"Stephanie Coates","email":"Stephanie.Coates1@aexp.com","url":"https://github.com/stephaniecoates"},{"name":"Nelly Kiboi","email":"Nelly.J.Kiboi@aexp.com","url":"https://github.com/nellyk"},{"name":"Nickolas Oliver","email":"nickolas.oliver@aexp.com","url":"https://github.com/PixnBits"}],"devDependencies":{"@babel/cli":"^7.23.4","@commitlint/cli":"^18.2.0","@commitlint/config-conventional":"^17.8.1","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^10.0.4","@semantic-release/git":"^10.0.1","@semantic-release/github":"^9.2.1","@semantic-release/npm":"^10.0.6","@semantic-release/release-notes-generator":"^11.0.7","amex-jest-preset":"^7.0.0","babel-plugin-add-module-exports":"^1.0.4","babel-preset-amex":"^4.0.3","del-cli":"^5.1.0","eslint":"^8.53.0","eslint-config-amex":"^16.0.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-jest-dom":"^4.0.3","husky":"^3.0.9","jest":"^29.7.0","lockfile-lint":"^4.12.1","semantic-release":"^21.1.2"},"license":"Apache-2.0","husky":{"hooks":{"pre-commit":"npm test","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"release":{"branches":["+([0-9])?(.{+([0-9]),x}).x","main","next","next-major",{"name":"beta","prerelease":true},{"name":"alpha","prerelease":true}],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/changelog","@semantic-release/npm","@semantic-release/git","@semantic-release/github"]},"homepage":"https://github.com/americanexpress/env-config-utils","bugs":{"url":"https://github.com/americanexpress/env-config-utils/issues"},"_id":"@americanexpress/env-config-utils@2.0.4","gitHead":"280a2d7a977307eeec30eae18705fbb78bf6eeac","_nodeVersion":"18.19.0","_npmVersion":"9.9.0","dist":{"integrity":"sha512-vEYbO4G/3uGG3swvIG9rxWXN6FaLOnZNpu7Twba6jY6swtH0RpeYEbQzU2piPVK53/jbV+YZ9mIBxb4UgckfiA==","shasum":"7c3aae5acc859787ee8281768f26276242e10044","tarball":"https://registry.npmjs.org/@americanexpress/env-config-utils/-/env-config-utils-2.0.4.tgz","fileCount":28,"unpackedSize":98734,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTweApeM7J+LLu+RabB2okDsz3Y5h9Dv9yErDRHyhehAIgI8ju1hfMlSNIvdAkRhQPDvyowTAqH2Z5olugCZFWjdg="}]},"_npmUser":{"name":"amexopensource","email":"open-source-ops@aexp.com"},"directories":{},"maintainers":[{"name":"pixnbits","email":"i@pixnbits.org"},{"name":"anescobar1991","email":"anescobar1991@gmail.com"},{"name":"jsmartfo","email":"j_smart_foster@hotmail.com"},{"name":"amexopensource","email":"open-source-ops@aexp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-config-utils_2.0.4_1705603850006_0.9934951236790599"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-22T22:48:41.228Z","2.0.1":"2019-11-22T22:48:41.591Z","modified":"2024-01-18T18:50:50.420Z","2.0.2":"2019-12-09T18:01:39.970Z","2.0.3":"2024-01-18T15:24:48.474Z","2.0.4":"2024-01-18T18:50:50.166Z"},"maintainers":[{"name":"pixnbits","email":"i@pixnbits.org"},{"name":"anescobar1991","email":"anescobar1991@gmail.com"},{"name":"jsmartfo","email":"j_smart_foster@hotmail.com"},{"name":"amexopensource","email":"open-source-ops@aexp.com"}],"description":"Utilities for runtime configuration validations","homepage":"https://github.com/americanexpress/env-config-utils","repository":{"type":"git","url":"git+https://github.com/americanexpress/env-config-utils.git"},"contributors":[{"name":"Andres Escobar","email":"Andres.Escobar@aexp.com","url":"https://github.com/anescobar1991"},{"name":"James Singleton","email":"James.Singleton1@aexp.com","url":"https://github.com/JamesSingleton"},{"name":"Jamie King","email":"Jamie.King@aexp.com","url":"https://github.com/10xLaCroixDrinker"},{"name":"Jonathan Adshead","email":"Jonathan.Adshead@aexp.com","url":"https://github.com/JAdshead"},{"name":"Michael Tobia","email":"Michael.M.Tobia@aexp.com","url":"https://github.com/Francois-Esquire"},{"name":"Michael Tomcal","email":"Michael.A.Tomcal@aexp.com","url":"https://github.com/mtomcal"},{"name":"Stephanie Coates","email":"Stephanie.Coates1@aexp.com","url":"https://github.com/stephaniecoates"},{"name":"Nelly Kiboi","email":"Nelly.J.Kiboi@aexp.com","url":"https://github.com/nellyk"},{"name":"Nickolas Oliver","email":"nickolas.oliver@aexp.com","url":"https://github.com/PixnBits"}],"bugs":{"url":"https://github.com/americanexpress/env-config-utils/issues"},"license":"Apache-2.0","readme":"<h1 align=\"center\">\n  <img src='https://github.com/americanexpress/env-config-utils/raw/main/env-config-utils.png' alt=\"Env Config Utils - One Amex\" width='50%'/>\n</h1>\n\n[![npm](https://img.shields.io/npm/v/@americanexpress/env-config-utils)](https://www.npmjs.com/package/@americanexpress/env-config-utils)\n![Health Check](https://github.com/americanexpress/env-config-utils/workflows/Health%20Check/badge.svg)\n\n> This contains utilities for configuring environment variables including functions for preprocessing.\n\n## 👩‍💻 Hiring 👨‍💻\n\nWant to get paid for your contributions to `env-config-utils`?\n> Send your resume to oneamex.careers@aexp.com\n\n\n## 📖 Table of Contents\n\n* [Features](#-features)\n* [Usage](#-usage)\n* [API](#-api)\n* [Contributing](#-contributing)\n\n## ✨ Features\n\n* Validate environment variables.\n* Normalize any environment variables.\n* Set default value for the environment variables.\n* Provide valid environment variables options.\n\n## 🤹‍ Usage\n\n### Installation\n\n```bash\nnpm i @americanexpress/env-config-utils\n```\n\nCheckout the different parameters you can use under the [API](#api) section.\n\n```js\nconst { preprocessEnvVar } = require('@americanexpress/env-config-utils');\n\nconst config = {\n  name: 'HTTP_PORT',\n  normalize: (input) => {\n    const parsed = parseInt(input, 10);\n    if (Number.isNaN(parsed) || parsed != input) {\n      throw new Error(`env var HTTP_PORT needs to be a valid integer, given \"${input}\"`);\n    } else {\n      return parsed;\n    }\n  },\n  defaultValue: () => 3000,\n};\n\npreprocessEnvVar(config);\nconst isFetchableUrlInNode = require('@americanexpress/env-config-utils/isFetchableUrlInNode');\n// throws if not a valid url\nisFetchableUrlInNode('https://example.aexp.com/path');\n\n```\n\n## 🎛️ API\n\n## preprocessEnvVar( [config] )\n\nProcesses environment variables and applies validations and defaults.\n\n### config( you can give this any name)\n\nType: `object`\n\nprovide an object that can be given any name with the below parameters.\n\n#### name\n\nType: `string`\n\nThis is the name of the environment variable and refers to process.env[name] **REQUIRED**\n\n#### normalize\n\nType: `function`\n\nThis is a function that takes a value an performs preprocessing on it before the value is set on the environment variable.\n\n#### valid\n\nType: `array`\n\nAn optional array of valid values.\n\n#### defaultValue\n\nType: `string/function`\n\nAn optional value to use if none is defined\n\n#### validate\n\nType: `function`\n\nAn optional function to validate if the provided value is acceptable. Throws an error.\n\n## isFetchableUrlInBrowser()\n\nValidates that a given URL is valid when called from the browser. Useful for usage as a validate function for `preprocessEnvVar()`\n\n### url\n\nType: `string`\n\nUrl to validate.\n\n#### Usage with [`preprocessEnvVar()`](#preprocessEnvVar)\n\n``` js\nconst {\n    name: 'MY_V_COOL_API_URL',\n    validate: isFetchableUrlInBrowser,\n} = config;\n\n```\npreprocessEnvVar(config);\n\n## isFetchableUrlInNode()\n\nValidates that a given URL is valid when called from the server. Useful for usage as a validate function for `preprocessEnvVar()`\n\n### url\n\nType: `string`\n\nUrl to validate.\n\n#### Usage with [`preprocessEnvVar()`](#preprocessEnvVar)\n\n``` js\nconst {\n    name: 'MY_V_COOL_API_URL',\n    validate: isFetchableUrlInNode,\n} = config;\n\npreprocessEnvVar(config);\n\n```\n\n## 🏆 Contributing\n\nWe welcome Your interest in the American Express Open Source Community on Github.\nAny Contributor to any Open Source Project managed by the American Express Open\nSource Community must accept and sign an Agreement indicating agreement to the\nterms below. Except for the rights granted in this Agreement to American Express\nand to recipients of software distributed by American Express, You reserve all\nright, title, and interest, if any, in and to Your Contributions. Please [fill\nout the Agreement](https://cla-assistant.io/americanexpress/env-config-utils).\n\nPlease feel free to open pull requests and see [CONTRIBUTING.md](./CONTRIBUTING.md) to learn how to get started contributing.\n\n## 🗝️ License\n\nAny contributions made under this project will be governed by the [Apache License\n2.0](https://github.com/americanexpress/env-config-utils/blob/main/LICENSE.txt).\n\n## 🗣️ Code of Conduct\n\nThis project adheres to the [American Express Community Guidelines](./CODE_OF_CONDUCT.md).\nBy participating, you are expected to honor these guidelines.\n","readmeFilename":"README.md"}