{"_id":"@ameykhoje/env-guard","_rev":"8-ba0e9ee69b2cae0edef7bedae804e170","name":"@ameykhoje/env-guard","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"@ameykhoje/env-guard","version":"1.0.0","keywords":["env","type-safe","type safety","env validation","env type safety","env guard"],"author":{"name":"Amey Khoje"},"license":"MIT","_id":"@ameykhoje/env-guard@1.0.0","maintainers":[{"name":"ameykhoje","email":"ameykhoje@gmail.com"}],"dist":{"shasum":"c1790527b5533d337f2209cbc0f703c31ae39549","tarball":"https://registry.npmjs.org/@ameykhoje/env-guard/-/env-guard-1.0.0.tgz","fileCount":18,"integrity":"sha512-nn2b4I3nJBpWIWGQ+Xe9400tPAGy1O/Tr7EAz/QSLuEbcLsIyLWZ6mKDPgBcLi/GSXviGB/Faad4Ko7XokFPJg==","signatures":[{"sig":"MEUCICIFLWBZWQAwI11u0hL/wBFI46wBtrUrbBLO1G7KdyIsAiEAyBekV6Cd+u++8XKizI9EgyAcBOuvATLPjLXldmUodq8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18022},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"vite","build":"tsc -p tsconfig.build.json && vite build","preview":"vite preview","build:watch":"vite build -w"},"_npmUser":{"name":"ameykhoje","email":"ameykhoje@gmail.com"},"description":"Type-safe environment validation library","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2026 Amey Khoje\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","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.0.13","typescript":"~6.0.2","@types/node":"^25.8.0","@biomejs/biome":"2.4.15","vite-plugin-dts":"^5.0.0","vite-tsconfig-paths":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/env-guard_1.0.0_1778953581513_0.1069543369798962","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@ameykhoje/env-guard","version":"1.0.1","keywords":["env","type-safe","type safety","env validation","env type safety","env guard"],"author":{"name":"Amey Khoje"},"license":"MIT","_id":"@ameykhoje/env-guard@1.0.1","maintainers":[{"name":"ameykhoje","email":"ameykhoje@gmail.com"}],"dist":{"shasum":"9820c7126072f2fcfbb4b0dc09491ce2bac47cb0","tarball":"https://registry.npmjs.org/@ameykhoje/env-guard/-/env-guard-1.0.1.tgz","fileCount":18,"integrity":"sha512-LExl0M2TGV2EDtD84Okxn0EOJT6Q5rjtY8/jGdgQ1/kUFDLEhgwrxzyx4FI1J1M5GEGoc2FHrdy6RkbCfTt3Cw==","signatures":[{"sig":"MEYCIQDSSwNGGfVNpNGO9B65Zk9J+73sf3q7bMmZeMhyOydYywIhAL8oKTsV4TWtVhcthRVJUKHbiu3j3awNUWh08Pvcxpsd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18066},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"vite","build":"tsc -p tsconfig.build.json && vite build","preview":"vite preview","build:watch":"vite build -w"},"_npmUser":{"name":"ameykhoje","email":"ameykhoje@gmail.com"},"description":"Type-safe environment validation library","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2026 Amey Khoje\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","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.0.13","typescript":"~6.0.2","@types/node":"^25.8.0","@biomejs/biome":"2.4.15","vite-plugin-dts":"^5.0.0","vite-tsconfig-paths":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/env-guard_1.0.1_1778953832787_0.2648945440672763","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@ameykhoje/env-guard","version":"1.0.2","keywords":["env","type-safe","type safety","env validation","env type safety","env guard"],"author":{"name":"Amey Khoje"},"license":"MIT","_id":"@ameykhoje/env-guard@1.0.2","maintainers":[{"name":"ameykhoje","email":"ameykhoje@gmail.com"}],"dist":{"shasum":"36dfef428a4832e44aea41124ca501e7e70dac40","tarball":"https://registry.npmjs.org/@ameykhoje/env-guard/-/env-guard-1.0.2.tgz","fileCount":18,"integrity":"sha512-bDar8/iDUTCxLCX9TEqTEqnaXJR5UKEE9cJ5zRET529ul1HYWC5Urf6ndqnWLJWv52e+zXb6Nrzk+aLW1wjrCA==","signatures":[{"sig":"MEYCIQDLt5pjm8s+ghy8fhnBuZx/n0SmAXQhIGM+8H/aIXtCbgIhAITuavaBqH8Fwxpjiabzy7YWUdOIRBcEBMtflAknZDE+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18066},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"vite","build":"tsc -p tsconfig.build.json && vite build","preview":"vite preview","build:watch":"vite build -w"},"_npmUser":{"name":"ameykhoje","email":"ameykhoje@gmail.com"},"description":"Type-safe environment validation library","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2026 Amey Khoje\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","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.0.13","typescript":"~6.0.2","@types/node":"^25.8.0","@biomejs/biome":"2.4.15","vite-plugin-dts":"^5.0.0","vite-tsconfig-paths":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/env-guard_1.0.2_1778953883811_0.11309195587613541","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@ameykhoje/env-guard","version":"1.0.3","keywords":["env","type-safe","type safety","env validation","env type safety","env guard"],"author":{"name":"Amey Khoje"},"license":"MIT","_id":"@ameykhoje/env-guard@1.0.3","maintainers":[{"name":"ameykhoje","email":"ameykhoje@gmail.com"}],"dist":{"shasum":"d233516bc12867e701b71277e9573b00d43954d8","tarball":"https://registry.npmjs.org/@ameykhoje/env-guard/-/env-guard-1.0.3.tgz","fileCount":19,"integrity":"sha512-P2o3XYlNiIZrlQLPTmJSt63/v9zH2nE+9RMdxu9JOhzJ/H4eN8a136bL+XRozJ7MdQbupjafJ3jedxrlgWEvYw==","signatures":[{"sig":"MEQCIHt88Lgek2kdly5lPlCNsmpbxjEag8Pq5VBAJbynUbPCAiAZ6XBWkwUChq8A7+zwCzrbJgZMdE54v9aLKqnV4lFYKg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19318},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"vite","build":"tsc -p tsconfig.build.json && vite build","preview":"vite preview","build:watch":"vite build -w"},"_npmUser":{"name":"ameykhoje","email":"ameykhoje@gmail.com"},"description":"Type-safe environment validation library","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2026 Amey Khoje\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","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.0.13","typescript":"~6.0.2","@types/node":"^25.8.0","@biomejs/biome":"2.4.15","vite-plugin-dts":"^5.0.0","vite-tsconfig-paths":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/env-guard_1.0.3_1778989078801_0.057039809962607935","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@ameykhoje/env-guard","version":"1.0.5","keywords":["env","type-safe","type safety","env validation","env type safety","env guard"],"author":{"name":"Amey Khoje"},"license":"MIT","_id":"@ameykhoje/env-guard@1.0.5","maintainers":[{"name":"ameykhoje","email":"ameykhoje@gmail.com"}],"dist":{"shasum":"c30a40fce535634c0937f9b45973da388eeb0d8b","tarball":"https://registry.npmjs.org/@ameykhoje/env-guard/-/env-guard-1.0.5.tgz","fileCount":15,"integrity":"sha512-4U0ccEWVG8FFuv6TKYd3agX4DR7GK5LLX4rGdmzHSjIqOJWbqzcgKhpBgHi2HmCIUgUZP8tIp4zWlU4fbVELcw==","signatures":[{"sig":"MEYCIQCh1nbaad7hey44IAUx+x9KWNbrpwCmsm7P8/Ql3wy38QIhAOm4Uv6otLNL4ZMH56D2/HfBGBu5JtPyYYnEhMn3s++h","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19318},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"1605f9d88d5e99b0900f14721b24255c7facd9dd","scripts":{"dev":"vite","build":"tsc -p tsconfig.build.json && vite build","preview":"vite preview","build:watch":"vite build -w"},"_npmUser":{"name":"ameykhoje","email":"ameykhoje@gmail.com"},"_npmVersion":"10.9.7","description":"Type-safe environment validation library","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"devDependencies":{"vite":"^8.0.13","typescript":"~6.0.2","@types/node":"^25.8.0","@biomejs/biome":"2.4.15","vite-plugin-dts":"^5.0.0","vite-tsconfig-paths":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/env-guard_1.0.5_1778990161659_0.056283298385375824","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@ameykhoje/env-guard","version":"1.1.0","keywords":["env","type-safe","type safety","env validation","env type safety","env guard"],"author":{"name":"Amey Khoje"},"license":"MIT","_id":"@ameykhoje/env-guard@1.1.0","maintainers":[{"name":"ameykhoje","email":"ameykhoje@gmail.com"}],"dist":{"shasum":"becc2c5fff0e4fa549af33a8d860b317219186f0","tarball":"https://registry.npmjs.org/@ameykhoje/env-guard/-/env-guard-1.1.0.tgz","fileCount":19,"integrity":"sha512-olrKxtROYj/44Id+UVhVAVUig4HPKGdYhoHHjF+GWO3rZXuCQsfXm8l09EUxG3aPdCls0rPrgD4FfMsSiYnvcQ==","signatures":[{"sig":"MEYCIQCFBNVlqv8h0RAEF5Z68g7QLtofSAwyPZOE3adssHjL/wIhAJl+xoN9nkQzqrIzD36bnP4tzfckJOcCavbGWOlJXoEy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19473},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"vite","lint":"biome check .","audit":"yarn audit","build":"tsc -p tsconfig.build.json && vite build","preview":"vite preview","typecheck":"tsc --noEmit","build:watch":"vite build -w"},"_npmUser":{"name":"ameykhoje","email":"ameykhoje@gmail.com"},"description":"Type-safe environment validation library","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2026 Amey Khoje\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","_hasShrinkwrap":false,"prepublishOnly":"yarn lint && yarn typecheck && yarn build","devDependencies":{"vite":"^8.0.13","typescript":"~6.0.2","@types/node":"^25.8.0","@biomejs/biome":"2.4.15","vite-plugin-dts":"^5.0.0","vite-tsconfig-paths":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/env-guard_1.1.0_1778993980910_0.7090997682482407","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@ameykhoje/env-guard","version":"1.1.1","keywords":["env","type-safe","type safety","env validation","env type safety","env guard"],"author":{"name":"Amey Khoje"},"license":"MIT","_id":"@ameykhoje/env-guard@1.1.1","maintainers":[{"name":"ameykhoje","email":"ameykhoje@gmail.com"}],"homepage":"https://github.com/AmeyKhoje/env-guard#readme","bugs":{"url":"https://github.com/AmeyKhoje/env-guard/issues"},"dist":{"shasum":"72058499cbf0023d9d75cc4afabcf27d13d03423","tarball":"https://registry.npmjs.org/@ameykhoje/env-guard/-/env-guard-1.1.1.tgz","fileCount":19,"integrity":"sha512-HFIdOVa7DVhHMiKhU0T539QXzOmpdKmK1lJnw/RIVmeZm5Ep63yaRypXBNWbLpntfHqHLC5/P+2DIZwTWn8BEw==","signatures":[{"sig":"MEUCIQDrvk9yypJvFK6/BQWsvWTPq0URxOfYPwV0ekiJ42OhwwIgM5kWKNOrJgGgG9xK9gTNNvwkdL+MYX82yOxT02xBfPw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19710},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"vite","lint":"biome check .","audit":"yarn audit","build":"tsc -p tsconfig.build.json && vite build","preview":"vite preview","typecheck":"tsc --noEmit","build:watch":"vite build -w"},"_npmUser":{"name":"ameykhoje","email":"ameykhoje@gmail.com"},"repository":{"url":"https://github.com/AmeyKhoje/env-guard.git","type":"git"},"description":"Type-safe environment validation library","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2026 Amey Khoje\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","_hasShrinkwrap":false,"prepublishOnly":"yarn lint && yarn typecheck && yarn build","devDependencies":{"vite":"^8.0.13","typescript":"~6.0.2","@types/node":"^25.8.0","@biomejs/biome":"2.4.15","vite-plugin-dts":"^5.0.0","vite-tsconfig-paths":"^6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/env-guard_1.1.1_1778994364885_0.33052781354552696","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@ameykhoje/env-guard","version":"1.1.2","description":"Type-safe environment validation library","license":"MIT","author":{"name":"Amey Khoje"},"keywords":["env","type-safe","type safety","env validation","env type safety","env guard"],"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"}},"scripts":{"dev":"vite","build":"tsc -p tsconfig.build.json && vite build","build:watch":"vite build -w","preview":"vite preview","typecheck":"tsc --noEmit","lint":"biome check .","audit":"yarn audit"},"prepublishOnly":"yarn lint && yarn typecheck && yarn build","repository":{"type":"git","url":"https://github.com/AmeyKhoje/env-guard.git"},"homepage":"https://github.com/AmeyKhoje/env-guard#readme","bugs":{"url":"https://github.com/AmeyKhoje/env-guard/issues"},"devDependencies":{"@biomejs/biome":"2.4.15","@types/node":"^25.8.0","typescript":"~6.0.2","vite":"^8.0.13","vite-plugin-dts":"^5.0.0","vite-tsconfig-paths":"^6.1.1"},"licenseText":"MIT License\n\nCopyright (c) 2026 Amey Khoje\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":"@ameykhoje/env-guard@1.1.2","dist":{"shasum":"02dcd91d2a04987ec3e0fa239a9777f6c7537880","integrity":"sha512-oncBWQ27QgBW4rcHRsybNQOPhx6JY8pvG1K+4pDEyA+Xk5isntAgw8wzJYLSxLg8kDzF9BrP9kDQuo99f9diuQ==","tarball":"https://registry.npmjs.org/@ameykhoje/env-guard/-/env-guard-1.1.2.tgz","fileCount":19,"unpackedSize":20007,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDeVcMahYIEXRl/8u9Fc7bHivnoMEK9wZYf+MyjfsQUmAiEAsZRKWNJmx41vCGtfWs4/aGB5Wdw+rTp6P5iGP8xA7Ac="}]},"_npmUser":{"name":"ameykhoje","email":"ameykhoje@gmail.com"},"directories":{},"maintainers":[{"name":"ameykhoje","email":"ameykhoje@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/env-guard_1.1.2_1778995069735_0.07629555175320601"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-16T17:46:21.370Z","modified":"2026-05-17T05:17:50.022Z","1.0.0":"2026-05-16T17:46:21.660Z","1.0.1":"2026-05-16T17:50:32.932Z","1.0.2":"2026-05-16T17:51:23.953Z","1.0.3":"2026-05-17T03:37:58.941Z","1.0.5":"2026-05-17T03:56:01.799Z","1.1.0":"2026-05-17T04:59:41.059Z","1.1.1":"2026-05-17T05:06:05.038Z","1.1.2":"2026-05-17T05:17:49.894Z"},"bugs":{"url":"https://github.com/AmeyKhoje/env-guard/issues"},"author":{"name":"Amey Khoje"},"license":"MIT","homepage":"https://github.com/AmeyKhoje/env-guard#readme","keywords":["env","type-safe","type safety","env validation","env type safety","env guard"],"repository":{"type":"git","url":"https://github.com/AmeyKhoje/env-guard.git"},"description":"Type-safe environment validation library","maintainers":[{"name":"ameykhoje","email":"ameykhoje@gmail.com"}],"readme":"# @ameykhoje/env-guard\n\nType-safe environment variable validation for JavaScript and TypeScript.\n\nValidate, transform and safely access environment variables with support for:\n\n* String validation\n* Number validation\n* Enum validation\n* Boolean parsing\n* Arrays\n* Optional values\n* Defaults\n* Custom validators\n* Partial success with collected errors\n* End-to-end TypeScript inference\n\n---\n\n## Installation\n\n```bash\nnpm install @ameykhoje/env-guard\n```\n\nor\n\n```bash\nyarn add @ameykhoje/env-guard\n```\n\n---\n\n## Quick Start\n\n```ts\nimport {\n  env,\n  string,\n  number,\n} from \"@ameykhoje/env-guard\";\n\nconst config = env(\n  {\n    VITE_API_URL:\n      string()\n        .url()\n        .compile(),\n\n    VITE_PORT:\n      number()\n        .min(1000)\n        .max(9999)\n        .compile(),\n  },\n\n  import.meta.env,\n);\n\nconsole.log(config.success);\n\nconsole.log(config.data);\n```\n\nResult:\n\n```ts\n{\n  success: true,\n\n  data: {\n    VITE_API_URL:\n      \"https://api.com\",\n\n    VITE_PORT:\n      3000\n  },\n\n  errors: []\n}\n```\n\n---\n\n## Parsing Result\n\n`env()` never crashes automatically.\n\n```ts\nconst result =\n  env(schema);\n\nif (!result.success) {\n  console.log(\n    result.errors,\n  );\n}\n\nconsole.log(\n  result.data,\n);\n```\n\nForce strict mode:\n\n```ts\nconst config =\n  result.unwrap();\n```\n\nThrows when validation fails.\n\n---\n\n## String Builder\n\n```ts\nstring()\n  .minLength(4)\n  .regex(/abc/)\n  .email()\n  .url()\n  .uuid()\n  .optional()\n  .default(\"value\")\n  .compile()\n```\n\nExample:\n\n```ts\nUSERNAME:\n\nstring()\n  .minLength(3)\n  .compile()\n```\n\n---\n\n## Number Builder\n\n```ts\nnumber()\n  .min(1)\n  .max(100)\n  .optional()\n  .default(10)\n  .compile()\n```\n\nExample\n\n```ts\nPORT:\n\nnumber()\n  .min(1000)\n  .max(9999)\n  .compile()\n```\n\n---\n\n## Boolean Builder\n\n```ts\nboolean()\n  .default(false)\n  .optional()\n  .compile()\n```\n\nSupports:\n\n```env\nDEBUG=true\nDEBUG=false\nDEBUG=1\nDEBUG=0\n```\n\n---\n\n## Array Builder\n\n```ts\narray(\n  number()\n    .min(5)\n    .compile(),\n)\n\n.compile()\n```\n\nEnvironment:\n\n```env\nPORTS=10,20,30\n```\n\nResult:\n\n```ts\n[10,20,30]\n```\n\nNested validation supported:\n\n```ts\narray(\n  number()\n    .min(5)\n    .max(100)\n    .compile(),\n)\n```\n\n---\n\n## Optional Values\n\n```ts\nTOKEN:\n\nstring()\n  .optional()\n  .compile()\n```\n\nMissing value:\n\n```ts\nTOKEN === undefined\n```\n\n---\n\n## Defaults\n\n```ts\nHOST:\n\nstring()\n  .default(\n    \"localhost\",\n  )\n\n  .compile()\n```\n\nMissing value:\n\n```ts\nHOST === \"localhost\"\n```\n\n---\n\n## Custom Validation\n\n```ts\nstring()\n\n.custom(\n  value =>\n    value.startsWith(\n      \"sk_\",\n    ),\n\n  \"Invalid API key\",\n)\n\n.compile()\n```\n\n---\n\n## Email Validation\n\n```ts\nEMAIL:\n\nstring()\n  .email()\n  .compile()\n```\n\n---\n\n## UUID Validation\n\n```ts\nID:\n\nstring()\n  .uuid()\n  .compile()\n```\n\n---\n\n## Result Shape\n\nSuccess:\n\n```ts\n{\n  success: true,\n\n  data: { ... },\n\n  errors: []\n}\n```\n\nFailure:\n\n```ts\n{\n  success: false,\n\n  data: {\n    partial:\n      \"values\"\n  },\n\n  errors: [\n    {\n      key:\n        \"PORT\",\n\n      message:\n        \"Minimum acceptable only 1000\",\n\n      received:\n        500\n    }\n  ]\n}\n```\n\n---\n\n## Example With Vite\n\n`.env`\n\n```env\nVITE_API_URL=https://api.com\nVITE_PORT=3000\n```\n\nUsage:\n\n```ts\nconst config =\n  env(\n    {\n      VITE_API_URL:\n        string()\n          .url()\n          .compile(),\n\n      VITE_PORT:\n        number()\n          .compile(),\n    },\n\n    import.meta.env,\n  );\n```\n\n---\n\n## Example With Node.js\n\n```ts\nconst config =\n  env(\n    schema,\n    process.env,\n  );\n```\n\n## Upcoming Features\n\n* Number Validation - Posivite, Negative, Finite\n* Array - Unique Elements, Non Empty, Length\n* Date(new)\n* Transformation (new)\n* Built-in dotenv loading\n* Multiple env support\n* Prefix validation. Eg. VITE_, NEXT_PUBLIC_\n* Asynchronous validations\n* Generate .env.example\n\n---\n\n## License\n\nMIT\n","readmeFilename":"README.md"}