{"_id":"@adobe/aio-lib-env","_rev":"43-94a9eeeca476406a9b6b14233266a0f7","name":"@adobe/aio-lib-env","dist-tags":{"next":"2.0.0-pre.2024-01-08.afe0f46e","latest":"3.0.1"},"versions":{"1.0.0":{"name":"@adobe/aio-lib-env","version":"1.0.0","license":"Apache-2.0","_id":"@adobe/aio-lib-env@1.0.0","maintainers":[{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"macdonst","email":"simon.macdonald@gmail.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"jianliao79","email":"jian.liao@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"bbythewa","email":"bbythewa@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"sirugh","email":"stephenrugh@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"niekraaijmakers","email":"niekraaijmakers@gmail.com"},{"name":"manasmaji","email":"maji@adobe.com"}],"homepage":"https://github.com/adobe/aio-lib-env","bugs":{"url":"https://github.com/adobe/aio-lib-env/issues"},"dist":{"shasum":"b540e6e4a1c5b13b0d175367743d9fa362fb0194","tarball":"https://registry.npmjs.org/@adobe/aio-lib-env/-/aio-lib-env-1.0.0.tgz","fileCount":19,"integrity":"sha512-sE4hpTxiqv/09EaBcZtolpMnywf29r64zh6OVypiWVu0j8SRzmFihba4tj9Y636Hnsa2SGRwZBh0cxPtJfNvVA==","signatures":[{"sig":"MEQCIHVoFywvm23T+q35M1MWq0iYf9rthHqmqtasFOhdBz0VAiBmCT0MRpnnK72O6akEuauBtSayqNPf5eBl4q9UsF/3Kg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSNn1CRA9TVsSAnZWagAAgjcP/1TK9XGyOEEai5tUpJy8\nLWs+5rUVBoEC7dhIIWvPCJEFk0XPc5arcKCAPj3G4TXwuf3d5BOe2NUDiG7x\n7/MOI7kIf+Kkc2q8tTV+hXhHFJzp/B6VDqORieTcKKKJrvlLDJ5Y+Q2IWWJf\nhcsO7jCR1X38gXuCNxJztl6aH94uKIYERtJtl1xnn3/bWxR1T181/cCIS9P7\nggACFtcCClhGqqqjNToe554aRG1VPESNup/tIeTCVh3UlxdO9Q1LyCzcIkPD\nVT6jyzvcLv8J27tqgVKtbT3nmnItwfh2yjJ4iody7sQ6dG1oag6zqB74ncpS\nqirn67mIa+hkvFSaCJWunoGd7nvliJKRsAa6++ajpNNWgfAAohGf9BnBVc6I\nokS7xymwd29h9ftg0V088JpP/efnafKF7aTmqeTpHie5tUhwc+07aBDThYGk\neZ10zscnX/hHpVSRPBTS9E2ZZwheXTKVenrjbUhcbqVZlqqHe5W1l6REXbPW\n4dFu4aoT+QWQcTdNycJsp7aHtTEIhpJaPQ8uwFAUQiiaLWiFMo51dJO35GTO\nlGS0VSRvV2/rM1QCeNOdqHhx9bP6/KId2pP0jCNpw+lHoWjO0WLjioZ5iaZW\nAQ1WOrKnz9Ozs5YenNaaiSNsMNvSF7wo3SZ9YsplC+eN8i9OAPXdzkjuVos6\n0FMI\r\n=1QR6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","engines":{"node":">=10.0.0"},"gitHead":"b506160e5a2ae9c15f313fcd5aa00c9c6c672210","scripts":{"lint":"eslint src test","test":"npm run lint && npm run unit-tests","unit-tests":"jest --config test/jest.config.js --maxWorkers=2"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"deprecated":false,"repository":{"url":"git+https://github.com/adobe/aio-lib-env.git","type":"git"},"_npmVersion":"6.14.11","description":"Adobe I/O lib for determining dev environment","directories":{},"_nodeVersion":"10.24.0","dependencies":{"@adobe/aio-lib-core-config":"^2.0.0","@adobe/aio-lib-core-logging":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.8.0","jsdoc":"^3.6.3","eslint":"^6.2.2","codecov":"^3.5.0","tsd-jsdoc":"^2.4.0","jest-junit":"^10.0.0","stdout-stderr":"^0.1.9","jsdoc-to-markdown":"^5.0.0","eslint-plugin-jest":"^23.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-jsdoc":"^25.0.1","eslint-plugin-import":"^2.18.0","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^14.1.0","eslint-plugin-standard":"^4.0.0","@adobe/eslint-config-aio-lib-config":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/aio-lib-env_1.0.0_1615387124511_0.5368742082996163","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@adobe/aio-lib-env","version":"1.1.0","license":"Apache-2.0","_id":"@adobe/aio-lib-env@1.1.0","maintainers":[{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"macdonst","email":"simon.macdonald@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"}],"homepage":"https://github.com/adobe/aio-lib-env","bugs":{"url":"https://github.com/adobe/aio-lib-env/issues"},"dist":{"shasum":"0e1c1f27e9f6d9ab8d466bfb878e41f601a763d0","tarball":"https://registry.npmjs.org/@adobe/aio-lib-env/-/aio-lib-env-1.1.0.tgz","fileCount":19,"integrity":"sha512-PdsFBiGSK7A76x4MriSJcyGUfFJSWDy9dKSvzPxONdw0PhjMzdq7Q6oOAlKv60QmkgUYwpMKazUiyrq+/CQ1oQ==","signatures":[{"sig":"MEYCIQDFLobJq4wbPtRrFJE4AdyGu2wLEUT4rpp8r368t2MZrAIhAIYbWMnDJ4KeYlmmD6dvAQes1chCMN9J01ZTUBIEC6s7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1v5jCRA9TVsSAnZWagAAZskQAIbLYWfEHvMLF4cHFoT9\nYXq87iRl/hU/zJhUUwDY4X2GiEDTbrCdMz7/03ZyAEUJSGG98OE2Wfn9d/qn\nQRlaGtpDp/SqrzdtezkeM64t3rZoCGyYwt8wLHKOml+VP6lGEpuRRWOLDVh/\nLthuwBHsFEcLg9spSYxS7I1SaJAWOX3U6Deu5EzUWiNfH9lBeNGbKrNzUD6Y\n8IOnebHa01xTTSacHcdFKY7Q5ym4lNSgFZwdsrsUXuPXHh5+5dO0boSM5Zhj\n10lo0KFah+1ALKpmZZvw39kg8qaU6AosRxNU7S1FxS0T+SPi2RJvWNPEDwYc\nlYqpk1FhdEEQrjxKsKp/M4/+gxa/jQqwZXJjT8007w26lbz3GDIzFc+mzV8d\n+gUmE6h+Y+fSHYnDvb0yW+fTD0zjC0m3HJOMSEylpSwhRxPiGsilfgfJi7F8\nPQn8dHlgluiMDfxI+D1ZwI0hEEZ9D6N6kAPEPQ/Hi2BsMcoWMl4kvX82l/bq\nkM7PTQ69ehUbSMuSwITzwynOh5QqsNDupdD8F+Z6Im0uKt97LJoOW5RXtKdu\ns9kuEif0rMKMdsZtfw2nntMVChQSUIOnYno02foSgQyCAUfmYzskzULX10rU\nDaPcJCJu0mnZx3/t0K6FYMMaPmjM6NEVGiTmKTn2cRfeDJgxcIGzmv+gBeQG\no8YM\r\n=rZIr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","engines":{"node":">=10.0.0"},"gitHead":"c45247ecc938d4bd2a55eb1a02d11681dc8225b7","scripts":{"lint":"eslint src test","test":"npm run lint && npm run unit-tests","unit-tests":"jest --config test/jest.config.js --maxWorkers=2"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"deprecated":false,"repository":{"url":"git+https://github.com/adobe/aio-lib-env.git","type":"git"},"_npmVersion":"6.14.11","description":"Adobe I/O lib for determining dev environment","directories":{},"_nodeVersion":"10.24.0","dependencies":{"@adobe/aio-lib-core-config":"^2.0.0","@adobe/aio-lib-core-logging":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.8.0","jsdoc":"^3.6.3","eslint":"^6.2.2","codecov":"^3.5.0","tsd-jsdoc":"^2.4.0","jest-junit":"^10.0.0","stdout-stderr":"^0.1.9","jsdoc-to-markdown":"^5.0.0","eslint-plugin-jest":"^23.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-jsdoc":"^25.0.1","eslint-plugin-import":"^2.18.0","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^14.1.0","eslint-plugin-standard":"^4.0.0","@adobe/eslint-config-aio-lib-config":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/aio-lib-env_1.1.0_1617927723962_0.40759557908778277","host":"s3://npm-registry-packages"}},"1.1.0-pre.2022-06-06.9947571f":{"name":"@adobe/aio-lib-env","version":"1.1.0-pre.2022-06-06.9947571f","license":"Apache-2.0","_id":"@adobe/aio-lib-env@1.1.0-pre.2022-06-06.9947571f","maintainers":[{"name":"adobehalls","email":"halls@adobe.com"},{"name":"fullcolorcoder","email":"bradjohn@adobe.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"patrickfulton","email":"patrickfulton@gmail.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"rofe","email":"npm@rofe.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"}],"homepage":"https://github.com/adobe/aio-lib-env","bugs":{"url":"https://github.com/adobe/aio-lib-env/issues"},"dist":{"shasum":"902a21db33f857f6112265abba4043f13b13bb9f","tarball":"https://registry.npmjs.org/@adobe/aio-lib-env/-/aio-lib-env-1.1.0-pre.2022-06-06.9947571f.tgz","fileCount":21,"integrity":"sha512-HGrcfim6k8IEjThHuRyBOxUEhVLyoVFvp4Ok3UIpyyC3Vav5DlCUNKm9zGJWJVr5CkgatI6tGaNHR+cYtqhJzw==","signatures":[{"sig":"MEYCIQCZivRH7XDrx4sRQqvj1POa2HPgysh2KRictTTKtSl/cgIhAMYM5iMUFhcrdRAZashS6a4PzRmY/Fp+H3Lj9LRcAedY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35255,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinbofACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpT8w//U5rCPnGoZaWMZJQagXMeLqnLPzpZzwowv88ULTPAb7OB4muF\r\nI4q0l7OzGbnW5obiXxQYGCwf+P7JyJ1KzlJ1/0erwUJrYwAL1XS+Rt2tlgkN\r\nZQvoIr7u15ubIO/AEzGQy37SMqWbylMMEnFnfwateuTuvYEfBTV0HQhGUR1l\r\nY56TcPTrO+HIVCJ0RWWK8Lq2GToRqPcrTwfA6QtYFWoaIPgt+lZb1h2ZpsMK\r\nly9pO9Bwg+P+KTMsCSppu/7x6MQbR62Hk/GoeaxBQSgdJQchUPNbWUQXDYP0\r\nA3A8YwuhvM0b/uItXUWyFusSrtvRx5xIp4NI/78fiD6vCP5YbwXMZtuC/cq/\r\nNa+K7WtJ6RlouIcH7FvLsDIK+7aDFW31fxiYdfWXgNpxQQRBECQsVUm9/7Lm\r\nWDFmCcxc3M3ULaHp/hUu5jvBQWXGb4fryhUAjC5+u0Gb0Gk6KbkOemsgEglP\r\njRFl8FpnX3WjfanjdlGy6kgn9c1deD6FzeERsN6laaopAvsLApYLspX0Ssvz\r\n77TwGiVK+/Uvd3VmC6e3mZMlvenRAP/0X6jvS8Zo0yWSWKUOn/ZlBCKasDi6\r\nIptmP832nfa822xRceP2Xxcugv1vwjKLyI6zlaSV2A5x5f+xn2SGkoBLIAyv\r\nA287nlACNQ25NhqFyoexdlDctuApgNFNBI8=\r\n=vkO6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"<!--\nCopyright 2021 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n-->\n\n[![Version](https://img.shields.io/npm/v/@adobe/aio-lib-env.svg)](https://npmjs.org/package/@adobe/aio-lib-env)\n[![Downloads/week](https://img.shields.io/npm/dw/@adobe/aio-lib-env.svg)](https://npmjs.org/package/@adobe/aio-lib-env)\n![Node.js CI](https://github.com/adobe/aio-lib-env/workflows/Node.js%20CI/badge.svg)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Codecov Coverage](https://img.shields.io/codecov/c/github/adobe/aio-lib-env/master.svg?style=flat-square)](https://codecov.io/gh/adobe/aio-lib-env/)\n\n# Adobe I/O Env Lib\n\nThis is a helper library that is to be used in the Adobe I/O CLI and SDKs to determine the environment to run in, whether `prod`, or `stage`.\n\n\n### Installing\n\n```bash\n$ npm install @adobe/aio-lib-env \n```\n\n### Usage\n\nDetermining the Environment\n```javascript\nconst { \n  getCliEnv, /* function */ \n  setCliEnv, /* function */\n  SUPPORTED_ENVS, /* array<string> */\n  DEFAULT_ENV, /* string */\n  PROD_ENV, /* string */\n  STAGE_ENV /* string */\n} = require('@adobe/aio-lib-env')\n\n// getCliEnv defaults to PROD_ENV if the global config key is not set, or is set to an unknown env\nconst env = getCliEnv() \n// do something based on the env - switch to prod or stage endpoints, for example\n```\n\nSetting the Environment (.aio)\n```json\n{\n  cli: {\n    env: \"prod\"\n  }\n}\n```\n\nSetting the Environment (.env)\n```ini\nAIO_CLI_ENV=prod\n```\n\nSetting the Environment (in code)\n```javascript\nconst { setCliEnv, PROD_ENV, STAGE_ENV } = require('@adobe/aio-lib-env')\n\nsetCliEnv(PROD_ENV)\nsetCliEnv(STAGE_ENV)\nsetCliEnv('delta-quadrant') // throws Error\n```\n\n### Debug Logs\n\n```bash\nLOG_LEVEL=debug <your_call_here>\n```\n\nPrepend the `LOG_LEVEL` environment variable and `debug` value to the call that invokes your function, on the command line. This should output a lot of debug data for your SDK calls.\n\n### Contributing\n\nContributions are welcome! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.\n\n### Licensing\n\nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.\n","engines":{"node":">=10.0.0"},"gitHead":"9947571ff3210d6b840e7bbd3a7f2ec63b248bdf","scripts":{"lint":"eslint src test","test":"npm run lint && npm run unit-tests","unit-tests":"jest --config test/jest.config.js --maxWorkers=2"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"deprecated":false,"repository":{"url":"git+https://github.com/adobe/aio-lib-env.git","type":"git"},"_npmVersion":"8.5.5","description":"Adobe I/O lib for determining dev environment","directories":{},"_nodeVersion":"16.15.0","dependencies":{"@adobe/aio-lib-core-config":"next","@adobe/aio-lib-core-logging":"next"},"prereleaseSha":"9947571ff3210d6b840e7bbd3a7f2ec63b248bdf","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^27","jsdoc":"^3.6.3","eslint":"^7.32.0","codecov":"^3.5.0","tsd-jsdoc":"^2.4.0","jest-junit":"^10.0.0","typescript":"^4.5.4","stdout-stderr":"^0.1.9","jsdoc-to-markdown":"^5.0.0","eslint-plugin-jest":"^23.20.0","eslint-plugin-node":"^11.1.0","eslint-plugin-jsdoc":"^37.5.1","eslint-plugin-import":"^2.25.4","eslint-plugin-promise":"^5.2.0","eslint-config-standard":"^16.0.3","eslint-plugin-standard":"^4.0.0","@adobe/eslint-config-aio-lib-config":"^1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/aio-lib-env_1.1.0-pre.2022-06-06.9947571f_1654503967375_0.7326126486298856","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@adobe/aio-lib-env","version":"2.0.0","license":"Apache-2.0","_id":"@adobe/aio-lib-env@2.0.0","maintainers":[{"name":"adobehalls","email":"halls@adobe.com"},{"name":"fullcolorcoder","email":"bradjohn@adobe.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"patrickfulton","email":"patrickfulton@gmail.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"rofe","email":"npm@rofe.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"}],"homepage":"https://github.com/adobe/aio-lib-env","bugs":{"url":"https://github.com/adobe/aio-lib-env/issues"},"dist":{"shasum":"c1052e7aac23154232fb270c8dd0984098178415","tarball":"https://registry.npmjs.org/@adobe/aio-lib-env/-/aio-lib-env-2.0.0.tgz","fileCount":21,"integrity":"sha512-ZY2UupgFhq7ijvoLz0p+RWEDGypRyVcAyrOibcxZXwQ0wEncabygJbL5q1qnPpVEV+cxeVJ7kqbaVJCZ5AzW7w==","signatures":[{"sig":"MEUCIFq3B7MGjvI1LZf0rXtAQ23cE14IFlT691UuX5UIxjTNAiEAqyZjRUaAsxgylKDY7t4VqZ0DlusVtDk/BMupreBwJ18=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/tweACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXCA//dDnIoxpvzmY4nwtDQZ5rbFgZWNaklZ6oAjcTvjMtGKxbL9qN\r\nOGMqXojGsUHRtJ4EixWvtRTNqrPuSJtzfry2zFdak3VUZTreKySp+EXjzi9D\r\ncRqcqW6bdiFbBXiYPkGKQDurt03ptbrDhYu9QM7CwIn7Pi0xRK9Oo8J+8aoe\r\n39OHJw+7lh2WGgvIiqIrYuxxK5NLSHsZbqXuJDEhBP3RybrMn0uXP/U7VGV1\r\n3IoJxpGI388FRMh8W27drjK4U6yJd1UTP3L6tGSi39MzCHnGaJsryv/Vnpsq\r\nEqEtdHoDCPWnwP3fJwmU2hW7SyjdnKdv3ZsSG/NC+2j1/oiKVVfuIn2vrztd\r\nh6KkOVa7AczwU6DNlegoTKWL49aR9XnJuV8WyY2Um+LchHCHeMp4FdaQD72m\r\nZ7v7MZXe7S9XZHIMXH+ik8QYSOdziqCdCTYLvoEt99HxfLfKFBZMIes5ncIG\r\ntlikS+ej5HkvahClQZv9SJCQSph6jkyCBKiygtkBU5GnI5Jh7ivN7trXHDV8\r\nY8YVhPbtWWnMppHtA4x1wHVaEC5uAMKtCnoJZmEflidSE++uMGrvrlMQ8rpv\r\nY9BXKlkrfjYKaR3rH2UfSwlhStpn0+PLit/EZOooFknBINS+aZBg6YATl3Fv\r\nJ9s3bHdj4DCRQuH/ffdgBVCWZ8+tu5elhBQ=\r\n=K1wr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","engines":{"node":"^14.16 || ^16.13 || >=18"},"gitHead":"56b3ec4b75a8217dbedbdf9ed6331e0e3fdf29da","scripts":{"lint":"eslint src test","test":"npm run lint && npm run unit-tests","unit-tests":"jest --config test/jest.config.js --maxWorkers=2"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"deprecated":false,"repository":{"url":"git+https://github.com/adobe/aio-lib-env.git","type":"git"},"_npmVersion":"8.11.0","description":"Adobe I/O lib for determining dev environment","directories":{},"_nodeVersion":"16.16.0","dependencies":{"@adobe/aio-lib-core-config":"^3.0.0","@adobe/aio-lib-core-logging":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27","jsdoc":"^3.6.3","eslint":"^7.32.0","codecov":"^3.5.0","tsd-jsdoc":"^2.4.0","jest-junit":"^10.0.0","typescript":"^4.5.4","stdout-stderr":"^0.1.9","jsdoc-to-markdown":"^5.0.0","eslint-plugin-jest":"^23.20.0","eslint-plugin-node":"^11.1.0","eslint-plugin-jsdoc":"^37.5.1","eslint-plugin-import":"^2.25.4","eslint-plugin-promise":"^5.2.0","eslint-config-standard":"^16.0.3","eslint-plugin-standard":"^4.0.0","@adobe/eslint-config-aio-lib-config":"^1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/aio-lib-env_2.0.0_1660869661876_0.14113193048657924","host":"s3://npm-registry-packages"}},"2.0.0-pre.2024-01-08.afe0f46e":{"name":"@adobe/aio-lib-env","version":"2.0.0-pre.2024-01-08.afe0f46e","license":"Apache-2.0","_id":"@adobe/aio-lib-env@2.0.0-pre.2024-01-08.afe0f46e","maintainers":[{"name":"djaeggi","email":"djaeggi@adobe.com"},{"name":"adobehalls","email":"halls@adobe.com"},{"name":"fullcolorcoder","email":"bradjohn@adobe.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"patrickfulton","email":"patrickfulton@gmail.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"rofe","email":"npm@rofe.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"}],"homepage":"https://github.com/adobe/aio-lib-env","bugs":{"url":"https://github.com/adobe/aio-lib-env/issues"},"dist":{"shasum":"e237386001c1df55e97c9063e6d5c044ca214746","tarball":"https://registry.npmjs.org/@adobe/aio-lib-env/-/aio-lib-env-2.0.0-pre.2024-01-08.afe0f46e.tgz","fileCount":21,"integrity":"sha512-EpemtzrO5Ms5EU4i1oQtLkPclgZ+ZyjaVYntsLTtHzWk9hMqMNnE1wCK1CdPQQFl7+GXVgzU/UuAgEuFzknYFA==","signatures":[{"sig":"MEUCIQDibHj4Z3i8Vhjmrp35b99iDLA7tb6LISyG+73w8qjK0gIgJF6gK86FD18ZaW/wxgaC+IMKLy+FvhgJcDyGiR3XeWE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35222},"main":"src/index.js","readme":"<!--\nCopyright 2021 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n-->\n\n[![Version](https://img.shields.io/npm/v/@adobe/aio-lib-env.svg)](https://npmjs.org/package/@adobe/aio-lib-env)\n[![Downloads/week](https://img.shields.io/npm/dw/@adobe/aio-lib-env.svg)](https://npmjs.org/package/@adobe/aio-lib-env)\n![Node.js CI](https://github.com/adobe/aio-lib-env/workflows/Node.js%20CI/badge.svg)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Codecov Coverage](https://img.shields.io/codecov/c/github/adobe/aio-lib-env/master.svg?style=flat-square)](https://codecov.io/gh/adobe/aio-lib-env/)\n\n# Adobe I/O Env Lib\n\nThis is a helper library that is to be used in the Adobe I/O CLI and SDKs to determine the environment to run in, whether `prod`, or `stage`.\n\n\n### Installing\n\n```bash\n$ npm install @adobe/aio-lib-env \n```\n\n### Usage\n\nDetermining the Environment\n```javascript\nconst { \n  getCliEnv, /* function */ \n  setCliEnv, /* function */\n  SUPPORTED_ENVS, /* array<string> */\n  DEFAULT_ENV, /* string */\n  PROD_ENV, /* string */\n  STAGE_ENV /* string */\n} = require('@adobe/aio-lib-env')\n\n// getCliEnv defaults to PROD_ENV if the global config key is not set, or is set to an unknown env\nconst env = getCliEnv() \n// do something based on the env - switch to prod or stage endpoints, for example\n```\n\nSetting the Environment (.aio)\n```json\n{\n  cli: {\n    env: \"prod\"\n  }\n}\n```\n\nSetting the Environment (.env)\n```ini\nAIO_CLI_ENV=prod\n```\n\nSetting the Environment (in code)\n```javascript\nconst { setCliEnv, PROD_ENV, STAGE_ENV } = require('@adobe/aio-lib-env')\n\nsetCliEnv(PROD_ENV)\nsetCliEnv(STAGE_ENV)\nsetCliEnv('delta-quadrant') // throws Error\n```\n\n### Debug Logs\n\n```bash\nLOG_LEVEL=debug <your_call_here>\n```\n\nPrepend the `LOG_LEVEL` environment variable and `debug` value to the call that invokes your function, on the command line. This should output a lot of debug data for your SDK calls.\n\n### Contributing\n\nContributions are welcome! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.\n\n### Licensing\n\nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.\n","engines":{"node":">=18"},"gitHead":"afe0f46ef9438bb793144ca4b050ef18bcdba3fc","scripts":{"lint":"eslint src test","test":"npm run lint && npm run unit-tests","unit-tests":"jest --config test/jest.config.js --maxWorkers=2"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"deprecated":false,"repository":{"url":"git+https://github.com/adobe/aio-lib-env.git","type":"git"},"_npmVersion":"10.2.3","description":"Adobe I/O lib for determining dev environment","directories":{},"_nodeVersion":"18.19.0","dependencies":{"@adobe/aio-lib-core-config":"next","@adobe/aio-lib-core-logging":"next"},"prereleaseSha":"afe0f46ef9438bb793144ca4b050ef18bcdba3fc","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^29","jsdoc":"^3.6.3","eslint":"^8.56.0","tsd-jsdoc":"^2.4.0","jest-junit":"^10.0.0","typescript":"^5.3.3","stdout-stderr":"^0.1.9","eslint-plugin-n":"^15.7.0","jsdoc-to-markdown":"^5.0.0","eslint-plugin-jest":"^27.6.1","eslint-plugin-node":"^11.1.0","eslint-plugin-jsdoc":"^42.0.0","eslint-plugin-import":"^2.29.1","eslint-plugin-promise":"^6.1.1","eslint-config-standard":"^17.1.0","eslint-plugin-standard":"^4.0.0","@adobe/eslint-config-aio-lib-config":"^2.0.2"},"bundleDependencies":[],"_npmOperationalInternal":{"tmp":"tmp/aio-lib-env_2.0.0-pre.2024-01-08.afe0f46e_1704719819817_0.7918163695481317","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@adobe/aio-lib-env","version":"3.0.0","license":"Apache-2.0","_id":"@adobe/aio-lib-env@3.0.0","maintainers":[{"name":"djaeggi","email":"djaeggi@adobe.com"},{"name":"adobehalls","email":"halls@adobe.com"},{"name":"fullcolorcoder","email":"bradjohn@adobe.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"patrickfulton","email":"patrickfulton@gmail.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"rofe","email":"npm@rofe.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"}],"homepage":"https://github.com/adobe/aio-lib-env","bugs":{"url":"https://github.com/adobe/aio-lib-env/issues"},"dist":{"shasum":"c39a50f3f6014d3aa4e58043e827229d40526af8","tarball":"https://registry.npmjs.org/@adobe/aio-lib-env/-/aio-lib-env-3.0.0.tgz","fileCount":21,"integrity":"sha512-tCCRI5pk74LATnU8Tmng9AupiaAwQmOsGrnH3L5x0oGGN//u5x+ZfODJUuTPvn5ZnrdfnuRKr+QlyPsLH6HyZA==","signatures":[{"sig":"MEUCIQDKusCZkitjBZRiSK+9Wx6vTnGVQ4Lwy3HSBFHlNbb3NAIgF4aBs3wRUYIFoyWrGZ3akU8lq/7bwH6AeORhpIlxVj8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35140},"main":"src/index.js","engines":{"node":">=18"},"gitHead":"6e731f2a91bd315cd54f6ebb0e022d8a01d551c6","scripts":{"lint":"eslint src test","test":"npm run lint && npm run unit-tests","unit-tests":"jest --config test/jest.config.js --maxWorkers=2"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"deprecated":false,"repository":{"url":"git+https://github.com/adobe/aio-lib-env.git","type":"git"},"_npmVersion":"10.2.3","description":"Adobe I/O lib for determining dev environment","directories":{},"_nodeVersion":"18.19.0","dependencies":{"@adobe/aio-lib-core-config":"^5.0.0","@adobe/aio-lib-core-logging":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29","jsdoc":"^3.6.3","eslint":"^8.56.0","tsd-jsdoc":"^2.4.0","jest-junit":"^10.0.0","typescript":"^5.3.3","stdout-stderr":"^0.1.9","eslint-plugin-n":"^15.7.0","jsdoc-to-markdown":"^5.0.0","eslint-plugin-jest":"^27.6.1","eslint-plugin-node":"^11.1.0","eslint-plugin-jsdoc":"^42.0.0","eslint-plugin-import":"^2.29.1","eslint-plugin-promise":"^6.1.1","eslint-config-standard":"^17.1.0","eslint-plugin-standard":"^4.0.0","@adobe/eslint-config-aio-lib-config":"^2.0.2"},"bundleDependencies":[],"_npmOperationalInternal":{"tmp":"tmp/aio-lib-env_3.0.0_1704889729639_0.6505971947987388","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"@adobe/aio-lib-env","version":"3.0.1","license":"Apache-2.0","_id":"@adobe/aio-lib-env@3.0.1","maintainers":[{"name":"djaeggi","email":"djaeggi@adobe.com"},{"name":"adobehalls","email":"halls@adobe.com"},{"name":"fullcolorcoder","email":"bradjohn@adobe.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"patrickfulton","email":"patrickfulton@gmail.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"rofe","email":"npm@rofe.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"}],"homepage":"https://github.com/adobe/aio-lib-env","bugs":{"url":"https://github.com/adobe/aio-lib-env/issues"},"dist":{"shasum":"8bc99fc9f1ad19ec5078357571a201993965a717","tarball":"https://registry.npmjs.org/@adobe/aio-lib-env/-/aio-lib-env-3.0.1.tgz","fileCount":21,"integrity":"sha512-UaLosV8jBowEA2ho4BNmWuHhrNCFbx26kJAr2SAIdEm4lZ/D8av8FUSMOEyAKJ/dfO2HCnLKMy77ie2AU7HI3g==","signatures":[{"sig":"MEUCIFFdirjjJF904sO6OcoQQcXY0MolGWXQJ9Kn5vDOnxcNAiEAs6lQyBcWykoXeFpRL7VUCySY0LRRFNQsoQtxIr+zSDA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32085},"main":"src/index.js","engines":{"node":">=18"},"gitHead":"cfdabb0144dbfcc9e9cb6c8db228778fba1e02d5","scripts":{"lint":"eslint src test","test":"npm run lint && npm run unit-tests","unit-tests":"jest --config test/jest.config.js --maxWorkers=2"},"_npmUser":{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},"deprecated":false,"repository":{"url":"git+https://github.com/adobe/aio-lib-env.git","type":"git"},"_npmVersion":"10.2.3","description":"Adobe I/O lib for determining dev environment","directories":{},"_nodeVersion":"18.19.0","dependencies":{"@adobe/aio-lib-core-config":"^5.0.0","@adobe/aio-lib-core-logging":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29","jsdoc":"^3.6.3","eslint":"^8.56.0","tsd-jsdoc":"^2.4.0","jest-junit":"^10.0.0","typescript":"^5.3.3","stdout-stderr":"^0.1.9","eslint-plugin-n":"^15.7.0","jsdoc-to-markdown":"^5.0.0","eslint-plugin-jest":"^27.6.1","eslint-plugin-node":"^11.1.0","eslint-plugin-jsdoc":"^42.0.0","eslint-plugin-import":"^2.29.1","eslint-plugin-promise":"^6.1.1","eslint-config-standard":"^17.1.0","eslint-plugin-standard":"^4.0.0","@adobe/eslint-config-aio-lib-config":"^2.0.2"},"bundleDependencies":[],"_npmOperationalInternal":{"tmp":"tmp/aio-lib-env_3.0.1_1707402486668_0.9992833564557952","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-03-10T14:38:44.510Z","modified":"2026-07-08T08:10:29.039Z","1.0.0":"2021-03-10T14:38:44.685Z","1.1.0":"2021-04-09T00:22:04.117Z","1.1.0-pre.2022-06-06.9947571f":"2022-06-06T08:26:07.583Z","2.0.0":"2022-08-19T00:41:02.074Z","2.0.0-pre.2024-01-08.afe0f46e":"2024-01-08T13:16:59.993Z","3.0.0":"2024-01-10T12:28:49.819Z","3.0.1":"2024-02-08T14:28:06.826Z"},"bugs":{"url":"https://github.com/adobe/aio-lib-env/issues"},"license":"Apache-2.0","homepage":"https://github.com/adobe/aio-lib-env","repository":{"url":"git+https://github.com/adobe/aio-lib-env.git","type":"git"},"description":"Adobe I/O lib for determining dev environment","maintainers":[{"email":"mabecker@adobe.com","name":"marbec"},{"email":"tripod@bocanegra.ch","name":"tripod"},{"email":"garthdb@gmail.com","name":"garthdb"},{"email":"lazdnet@gmail.com","name":"lazd"},{"email":"grp-opensourceoffice@adobe.com","name":"adobe-admin"},{"email":"patrickfulton@gmail.com","name":"patrickfulton"},{"email":"lars@trieloff.net","name":"trieloff"},{"email":"krisnye@gmail.com","name":"krisnye"},{"email":"dcpfsdk@adobe.com","name":"dcpfsdk"},{"email":"natebaldwindesign@gmail.com","name":"natebaldwin"},{"email":"devongovett@gmail.com","name":"devongovett"},{"email":"danniintheus@gmail.com","name":"aspro83"},{"email":"symanovi@adobe.com","name":"symanovi"},{"email":"dominique.pfister@gmail.com","name":"dpfister"},{"email":"sg@adobe.com","name":"stefan-guggisberg"},{"email":"npm@rofe.com","name":"rofe"},{"email":"kptdobe@gmail.com","name":"kptdobe"},{"email":"halls@adobe.com","name":"adobehalls"},{"email":"bradjohn@adobe.com","name":"fullcolorcoder"},{"email":"djaeggi@adobe.com","name":"djaeggi"},{"email":"dylandepass@gmail.com","name":"dylandepass"},{"email":"mhaack@adobe.com","name":"mhaack"},{"email":"amol@adobe.com","name":"amol-anand"},{"email":"stopp@adobe.com","name":"stopp-adobe"},{"email":"namarora@adobe.com","name":"namarora"},{"email":"doten@adobe.com","name":"doten"},{"email":"schmidt@adobe.com","name":"duh_schmidt"},{"email":"astha.bhargava23@gmail.com","name":"asthabh23"},{"email":"zouhir.dahbi@outlook.com","name":"zdahbi"},{"email":"tuicu@adobe.com","name":"tuicu"},{"email":"fmeschbe@adobe.com","name":"fmeschbe"}],"readme":"<!--\nCopyright 2021 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n-->\n\n[![Version](https://img.shields.io/npm/v/@adobe/aio-lib-env.svg)](https://npmjs.org/package/@adobe/aio-lib-env)\n[![Downloads/week](https://img.shields.io/npm/dw/@adobe/aio-lib-env.svg)](https://npmjs.org/package/@adobe/aio-lib-env)\n![Node.js CI](https://github.com/adobe/aio-lib-env/workflows/Node.js%20CI/badge.svg)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Codecov Coverage](https://img.shields.io/codecov/c/github/adobe/aio-lib-env/master.svg?style=flat-square)](https://codecov.io/gh/adobe/aio-lib-env/)\n\n# Adobe I/O Env Lib\n\nThis is a helper library that is to be used in the Adobe I/O CLI and SDKs to determine the environment to run in, whether `prod`, or `stage`.\n\n\n### Installing\n\n```bash\n$ npm install @adobe/aio-lib-env \n```\n\n### Usage\n\nDetermining the Environment\n```javascript\nconst { \n  getCliEnv, /* function */ \n  setCliEnv, /* function */\n  SUPPORTED_ENVS, /* array<string> */\n  DEFAULT_ENV, /* string */\n  PROD_ENV, /* string */\n  STAGE_ENV /* string */\n} = require('@adobe/aio-lib-env')\n\n// getCliEnv defaults to PROD_ENV if the global config key is not set, or is set to an unknown env\nconst env = getCliEnv() \n// do something based on the env - switch to prod or stage endpoints, for example\n```\n\nSetting the Environment (.aio)\n```json\n{\n  cli: {\n    env: \"prod\"\n  }\n}\n```\n\nSetting the Environment (.env)\n```ini\nAIO_CLI_ENV=prod\n```\n\nSetting the Environment (in code)\n```javascript\nconst { setCliEnv, PROD_ENV, STAGE_ENV } = require('@adobe/aio-lib-env')\n\nsetCliEnv(PROD_ENV)\nsetCliEnv(STAGE_ENV)\nsetCliEnv('delta-quadrant') // throws Error\n```\n\n### Debug Logs\n\n```bash\nLOG_LEVEL=debug <your_call_here>\n```\n\nPrepend the `LOG_LEVEL` environment variable and `debug` value to the call that invokes your function, on the command line. This should output a lot of debug data for your SDK calls.\n\n### Contributing\n\nContributions are welcome! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.\n\n### Licensing\n\nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.\n","readmeFilename":"README.md"}