{"_id":"@dsolodky/yaml-envsubst","_rev":"6-b631a032ef96cfe47dcd6434c6aeb3e7","name":"@dsolodky/yaml-envsubst","dist-tags":{"latest":"1.1.3"},"versions":{"1.0.0":{"name":"@dsolodky/yaml-envsubst","private":false,"version":"1.0.0","description":"envsubst tool for yaml files (especially for kubernetes yaml files)","main":"./src/index.js","dependencies":{"lodash":"^4.17.21","yaml":"^2.3.0"},"scripts":{"start":"node ./src/index.js ./kubernetes-template.yaml ./kubernetes.yaml"},"bin":{"yaml-envsubst":"src/index.js"},"keywords":["k8s","kubernetes","envsubst","gitlab-ci","environment variables"],"author":{"name":"SWolf"},"license":"MIT","devDependencies":{"@types/lodash":"^4.14.194"},"gitHead":"fd41a4b2e8dd9c2b88a79833bad996ad635a59ac","_id":"@dsolodky/yaml-envsubst@1.0.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-u8DIqGqkAXNPXVupVKTjxskfvRCz8OwNeDTnnDw5a0ONHSYw5hJiDbsKAJ8xB6wFgAkAPFlpEMfBaAvpL1z73Q==","shasum":"cb2e2564947c35dd77d3c627812f3991175d9f8b","tarball":"https://registry.npmjs.org/@dsolodky/yaml-envsubst/-/yaml-envsubst-1.0.0.tgz","fileCount":4,"unpackedSize":5324,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDprX8O1x/42LHqUXCAurEfp43X4z7stKWq77RWBu3SKAIhANc47oQG7J5U7ia24pzgU6xbWc6pNSkM5fV38BE8HPyM"}]},"_npmUser":{"name":"dsolodky","email":"dsolodky@gmail.com"},"directories":{},"maintainers":[{"name":"dsolodky","email":"dsolodky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-envsubst_1.0.0_1685027602594_0.5449992902676484"},"_hasShrinkwrap":false},"1.0.1":{"name":"@dsolodky/yaml-envsubst","private":false,"version":"1.0.1","description":"envsubst tool for yaml files (especially for kubernetes yaml files)","main":"./src/index.js","dependencies":{"lodash":"^4.17.21","yaml":"^2.3.0"},"scripts":{"start":"node ./src/index.js ./kubernetes-template.yaml ./kubernetes.yaml"},"engines":{"node":">=12.x.x <=16.x.x"},"bin":{"yaml-envsubst":"src/index.js"},"keywords":["k8s","kubernetes","envsubst","gitlab-ci","environment variables"],"author":{"name":"SWolf"},"license":"MIT","devDependencies":{"@types/lodash":"^4.14.194"},"gitHead":"e27d594b19e06b9b9beebfff4a306836d112bfc8","_id":"@dsolodky/yaml-envsubst@1.0.1","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-hVz0uvjKFrbWHg5Oj9FIEsNtC0nN2zwhKqTJNwrhFVsgeUWYjE+XouyS9UC1bmc+dMcCqbgStNP4a84Y3Vukbg==","shasum":"5dc9936dc0c4065ba894a27c26ec2a7e0fd0087b","tarball":"https://registry.npmjs.org/@dsolodky/yaml-envsubst/-/yaml-envsubst-1.0.1.tgz","fileCount":4,"unpackedSize":5384,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTTX0L8pJ7ZjnqnsYd4OVVtTL2a+ZimCCsdJoR/PAC0wIgBCwfHNEocgg0rnKDx6NgFTak7xjsNNReCEyzr9UGQKw="}]},"_npmUser":{"name":"dsolodky","email":"dsolodky@gmail.com"},"directories":{},"maintainers":[{"name":"dsolodky","email":"dsolodky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-envsubst_1.0.1_1685028394801_0.4467844996402619"},"_hasShrinkwrap":false},"1.0.2":{"name":"@dsolodky/yaml-envsubst","private":false,"version":"1.0.2","description":"envsubst tool for yaml files (especially for kubernetes yaml files)","main":"./src/index.js","dependencies":{"lodash":"^4.17.21","yaml":"^2.3.0"},"scripts":{"start":"node ./src/index.js ./kubernetes-template.yaml ./kubernetes.yaml"},"engines":{"node":">=14.x.x <=16.x.x"},"bin":{"yaml-envsubst":"src/index.js"},"keywords":["k8s","kubernetes","envsubst","gitlab-ci","environment variables"],"author":{"name":"SWolf"},"license":"MIT","devDependencies":{"@types/lodash":"^4.14.194"},"gitHead":"da2536251c5242d0ebad5ed2ce286424ac58bed6","_id":"@dsolodky/yaml-envsubst@1.0.2","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-QBXZR/Tb+rnuzqFI0VbwvgNKcPX0yFuUgsFVOa3ewpBcpMNAfMPeVjOd+k/vgvoJhwEN0o36z7DAzzGaZM3xsw==","shasum":"abe7a114f14bbb93b79b448c7ee360d2858c946a","tarball":"https://registry.npmjs.org/@dsolodky/yaml-envsubst/-/yaml-envsubst-1.0.2.tgz","fileCount":4,"unpackedSize":5416,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrqlxhmn6mrJXPFKWxBpbCQ3emD4D42wPYL1zO16ubRgIgUcnAuIw4ZHbSOJ7Rp9llABnSKaee4BS8k01xyZgwl9A="}]},"_npmUser":{"name":"dsolodky","email":"dsolodky@gmail.com"},"directories":{},"maintainers":[{"name":"dsolodky","email":"dsolodky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-envsubst_1.0.2_1685089699794_0.08721962747643786"},"_hasShrinkwrap":false},"1.1.0":{"name":"@dsolodky/yaml-envsubst","private":false,"version":"1.1.0","description":"envsubst tool for yaml files (especially for kubernetes yaml files)","main":"./src/index.js","dependencies":{"commander":"^10.0.1","lodash":"^4.17.21","yaml":"^2.3.0"},"scripts":{"start":"node ./src/index.js ./kubernetes.yaml ./kubernetes-output.yaml"},"engines":{"node":">=14.x.x <=16.x.x"},"bin":{"yaml-envsubst":"src/index.js"},"keywords":["k8s","kubernetes","envsubst","gitlab-ci","environment variables"],"author":{"name":"SWolf"},"license":"MIT","devDependencies":{"@types/lodash":"^4.14.194"},"licenseText":"MIT License\n\nCopyright (c) 2023 swolf88\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@dsolodky/yaml-envsubst@1.1.0","dist":{"shasum":"1de6633002c3bc3b9f563a4d4c2844f2af3f3794","integrity":"sha512-RMOxzwsz4g30EVskT6bw/8h8B0XhnCyp+3wjQigdFLCl/T5SAELrVfbpXR+6G4qrs5USM8CjBFyZk4KDnlUsjw==","tarball":"https://registry.npmjs.org/@dsolodky/yaml-envsubst/-/yaml-envsubst-1.1.0.tgz","fileCount":6,"unpackedSize":6086,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwWhn77EIHbLjWfRUX7FCD+ZgSRyB4Oe4a0JZgivsMbgIgEQsQeedfNA2Q19gdTnqJJnr/s5MLOwOUybRkD7WGhfo="}]},"_npmUser":{"name":"dsolodky","email":"dsolodky@gmail.com"},"directories":{},"maintainers":[{"name":"dsolodky","email":"dsolodky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-envsubst_1.1.0_1686820146594_0.7169913672324242"},"_hasShrinkwrap":false},"1.1.1":{"name":"@dsolodky/yaml-envsubst","private":false,"version":"1.1.1","description":"envsubst tool for yaml files (especially for kubernetes yaml files)","main":"./src/index.js","dependencies":{"commander":"^10.0.1","lodash":"^4.17.21","yaml":"^2.3.0"},"scripts":{"start":"node ./src/index.js ./kubernetes.yaml ./kubernetes-output.yaml"},"engines":{"node":">=14.x.x <=16.x.x"},"bin":{"yaml-envsubst":"src/index.js"},"keywords":["k8s","kubernetes","envsubst","gitlab-ci","environment variables"],"author":{"name":"SWolf"},"license":"MIT","devDependencies":{"@types/lodash":"^4.14.194"},"licenseText":"MIT License\n\nCopyright (c) 2023 swolf88\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@dsolodky/yaml-envsubst@1.1.1","dist":{"shasum":"88e39234b8196e40758e1c08d027ae00c1bf70bd","integrity":"sha512-OukvuL3GPnGXh1Dz/S40fAxblK6woUb+1SpTfca4DV12ZHED2kLLV0CDEfq1TbPNp8nraarHwNtRk4znGOkrFA==","tarball":"https://registry.npmjs.org/@dsolodky/yaml-envsubst/-/yaml-envsubst-1.1.1.tgz","fileCount":6,"unpackedSize":6230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEe51u4PUrnEQ3BjhC5UyNHI34bQsleuoOkkKg/QU7FKAiA4DtdK3drwLjCe0IVa2loE5BifXxUOCZbgf2Jp/v+YBQ=="}]},"_npmUser":{"name":"dsolodky","email":"dsolodky@gmail.com"},"directories":{},"maintainers":[{"name":"dsolodky","email":"dsolodky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-envsubst_1.1.1_1686915578491_0.5400414660141881"},"_hasShrinkwrap":false},"1.1.2":{"name":"@dsolodky/yaml-envsubst","private":false,"version":"1.1.2","description":"envsubst tool for yaml files (especially for kubernetes yaml files)","main":"./src/index.js","dependencies":{"commander":"^10.0.1","lodash":"^4.17.21","yaml":"^2.3.0"},"scripts":{"start":"node ./src/index.js ./kubernetes.yaml ./kubernetes-output.yaml"},"engines":{"node":">=14.x.x <=16.x.x"},"bin":{"yaml-envsubst":"src/index.js"},"keywords":["k8s","kubernetes","envsubst","gitlab-ci","environment variables"],"author":{"name":"SWolf"},"license":"MIT","devDependencies":{"@types/lodash":"^4.14.194"},"licenseText":"MIT License\n\nCopyright (c) 2023 swolf88\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@dsolodky/yaml-envsubst@1.1.2","dist":{"shasum":"aaed4432db3eee31419d1effeca4eadb7a2ad175","integrity":"sha512-UXhmq6Wiw3yoZfA7Y7qj3cGhkbkTY5prI1+Y9fgWFtlS7XrSHAxcndtyhNfZYqtyPiJtaRdNpooSre0huzwyBA==","tarball":"https://registry.npmjs.org/@dsolodky/yaml-envsubst/-/yaml-envsubst-1.1.2.tgz","fileCount":6,"unpackedSize":6295,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGu7gxY21VWy/TBU6ZtL+jHxMqvFJroH+z/nyF3kkPhCAiAsYaV+twFATAQfAYIjo7QBRHIufLBqteSM+7aIo3GzFw=="}]},"_npmUser":{"name":"dsolodky","email":"dsolodky@gmail.com"},"directories":{},"maintainers":[{"name":"dsolodky","email":"dsolodky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-envsubst_1.1.2_1688030123951_0.20013039432230206"},"_hasShrinkwrap":false},"1.1.3":{"name":"@dsolodky/yaml-envsubst","private":false,"version":"1.1.3","description":"envsubst tool for yaml files (especially for kubernetes yaml files)","main":"./src/index.js","dependencies":{"commander":"^10.0.1","lodash":"^4.17.21","yaml":"^2.3.0"},"scripts":{"start":"node ./src/index.js ./kubernetes.yaml ./kubernetes-output.yaml"},"engines":{"node":">=14.x.x <=16.x.x"},"bin":{"yaml-envsubst":"src/index.js"},"keywords":["k8s","kubernetes","envsubst","gitlab-ci","environment variables"],"author":{"name":"SWolf"},"license":"MIT","devDependencies":{"@types/lodash":"^4.14.194"},"licenseText":"MIT License\n\nCopyright (c) 2023 swolf88\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@dsolodky/yaml-envsubst@1.1.3","dist":{"shasum":"e1d14938bde7e973c282438ccce379c52901cb61","integrity":"sha512-PaUTlARrsA6rBSaKfXoPreOK5BOHIJYdxfzF+8lQ5lGe1RKpaOrrOJkAgyKT3RhE/IKYFsyCNDxErOKGRTxHDA==","tarball":"https://registry.npmjs.org/@dsolodky/yaml-envsubst/-/yaml-envsubst-1.1.3.tgz","fileCount":6,"unpackedSize":6792,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPDfppGve/eNerjKKNbCJDOFMH1haK6er7dZp8HpyiAgIhAKDf6fjEaSbCCV3MofIiE1cWrlKCdzJfV7dsorHqWu57"}]},"_npmUser":{"name":"dsolodky","email":"dsolodky@gmail.com"},"directories":{},"maintainers":[{"name":"dsolodky","email":"dsolodky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-envsubst_1.1.3_1688047415750_0.9382178108286339"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-25T15:13:22.507Z","1.0.0":"2023-05-25T15:13:22.715Z","modified":"2023-06-29T14:03:35.989Z","1.0.1":"2023-05-25T15:26:34.971Z","1.0.2":"2023-05-26T08:28:19.934Z","1.1.0":"2023-06-15T09:09:06.746Z","1.1.1":"2023-06-16T11:39:38.671Z","1.1.2":"2023-06-29T09:15:24.175Z","1.1.3":"2023-06-29T14:03:35.896Z"},"maintainers":[{"name":"dsolodky","email":"dsolodky@gmail.com"}],"description":"envsubst tool for yaml files (especially for kubernetes yaml files)","keywords":["k8s","kubernetes","envsubst","gitlab-ci","environment variables"],"author":{"name":"SWolf"},"license":"MIT","readme":"# yaml-envsubst\nenvsubst tool for yaml files (especially for kubernetes yaml files)\n\nThis tool is created in order to substitute envrionment varibales inside the Kubernetes yaml templates during the Gitlab CI job execution. \n\nYou can have two variants:\n1. Substitute values or part of values.\n```yaml\ntest: ${MYVAR}\ntest2: ${MYVAR}-some text\ntest3: ${MULTILINE_VAR}\n```\n\nin case if you set your environment like that:\n```bash\nexport MYVAR=First value\nexport MULTILINE_VAR=\"First line\nsecond line\"\n```\n\nYou will get this yaml as an output:\n```yaml\ntest: First value\ntest2: First value-some text\ntest3: |-\n       First line\n       second line\n```\n\n2. Substitute complete key:\n```yaml\n${test}:\n    innerKey: value\nanotherKey: value\n```\nso you can define the env variables test as:\n```yaml\nkey1: \n    otherKey: value\n    otherKey2: value\n```\n\nas aa result you will get:\n```yaml\nkey1: \n    otherKey: value\n    otherKey2: value\n    innerKey: value\nanotherKey: value\n```\n\nA variable value may contain another variable, which is also supported.\n\n## Installation\n```bash\nnpm install -g @dsolodky/yaml-envsubst\n```\n\nYou will probably want to add it to you docker file. \n```dockerfile\nRUN apk add --update npm\nRUN npm install -g @dsolodky/yaml-envsubst\n\n```\n\n## Usage\nThe tool expects two command line arguments\n```bash\nyaml-envsubst ./kubernetes-template.yaml ./kubernetes.yaml\n```\n","readmeFilename":"README.md"}