{"_id":"@ampsy/env","_rev":"4-acdec08ec83258c7c13dcaa2276c6c22","name":"@ampsy/env","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.7":{"name":"@ampsy/env","version":"0.0.7","author":{"name":"Jon Kofal"},"_id":"@ampsy/env@0.0.7","maintainers":[{"name":"americano-psycho","email":"jonkofal@gmail.com"}],"dist":{"shasum":"285c02ca721db66e2686db64cfd5a08081040faa","tarball":"https://registry.npmjs.org/@ampsy/env/-/env-0.0.7.tgz","fileCount":11,"integrity":"sha512-wzD4ILdy65z9V1/ig1Toc1XF0AtM11cFIP77a3CcAl3WD3WuuRu0pRo/p0LRFwbQMZWL/ZYyykVgnfr2JW1mWQ==","signatures":[{"sig":"MEYCIQDQlCGDozDhuuODk+p/VM1mnDeYr4XzqI6hHnc8LMYe5AIhALrhDXvUOK9TJ7OFsH+MZgwQh3GmQr1yU2C9kruxegyt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56846},"main":"./lib/env.js","gitHead":"858f75c6844c0d75c03b29dd7ca8aa594631cadc","scripts":{"test":"export $(grep -v '^#' .env | xargs) && node test/test.js","build":"echo nothing to see here, move along..."},"_npmUser":{"name":"americano-psycho","email":"jonkofal@gmail.com"},"_npmVersion":"11.0.0","description":"Fast-fail environment variable accessor.","directories":{},"_nodeVersion":"22.9.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/env_0.0.7_1778581714875_0.11949908309084112","host":"s3://npm-registry-packages-npm-production"}},"0.0.15":{"name":"@ampsy/env","version":"0.0.15","author":{"name":"Jon Kofal"},"_id":"@ampsy/env@0.0.15","maintainers":[{"name":"americano-psycho","email":"jonkofal@gmail.com"}],"homepage":"https://github.com/jonkofal/env#readme","bugs":{"url":"https://github.com/jonkofal/env/issues"},"dist":{"shasum":"d3c181f6736ac43418079d1677619973fc70473c","tarball":"https://registry.npmjs.org/@ampsy/env/-/env-0.0.15.tgz","fileCount":12,"integrity":"sha512-5AjRA5R2ptVmpHN77HYY6YLvaMxvbXvChCUD5nD4OFGg+9y4jx2RaFMV22irtCd7zFU10XZSz5eRGrQswr4wJQ==","signatures":[{"sig":"MEQCIEOrMJYGTQba4jpQG63Z1aTyKB0NKzkAlMyNBKXkBVykAiBlsqGtfnr9K7kl5u9FG7mf0mZXql95QXnBgFcvvBbVKw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ampsy%2fenv@0.0.15","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":57779},"main":"./lib/env.js","type":"module","engines":{"node":">=24"},"gitHead":"d64bdd404d43919be7d4ff840a07d6f37853ed90","scripts":{"test":"export $(grep -v '^#' .env | xargs) && node test/test.js","build":"echo nothing to see here, move along..."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b76e7f07-2b46-4d34-8e05-6e934def756c"}},"repository":{"url":"git+https://github.com/jonkofal/env.git"},"_npmVersion":"11.11.0","description":"Fast-fail environment variable accessor.","directories":{},"_nodeVersion":"24.14.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/env_0.0.15_1778600017435_0.32028461381646345","host":"s3://npm-registry-packages-npm-production"}},"0.0.16":{"name":"@ampsy/env","version":"0.0.16","author":{"name":"Jon Kofal"},"_id":"@ampsy/env@0.0.16","maintainers":[{"name":"americano-psycho","email":"jonkofal@gmail.com"}],"homepage":"https://github.com/jonkofal/env#readme","bugs":{"url":"https://github.com/jonkofal/env/issues"},"dist":{"shasum":"166b8e6895afd86714b773b2eb3163c30f05d896","tarball":"https://registry.npmjs.org/@ampsy/env/-/env-0.0.16.tgz","fileCount":4,"integrity":"sha512-8+Nxoud1cIUq5W0yLzKleWMo24VXV17DFUP5JuZ81n9ebFJn8Uj39RTsVSw+9IhpTgNwe/E+i6PJ/zj7/uw5mw==","signatures":[{"sig":"MEYCIQD2OiKI5pvMjOeUhBypGxteTts7Tv08FQpjvmSM8M4ZvwIhALklaD0MjFiiG6DHTuc8gcb2g26RquYs6XLEGiReR/eC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ampsy%2fenv@0.0.16","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":13115},"main":"./lib/env.js","type":"module","engines":{"node":">=24"},"gitHead":"0de2484ce0f920b4a4cc96570e7b173e7bef421b","scripts":{"test":"export $(grep -v '^#' .env | xargs) && node test/test.js","build":"echo nothing to see here, move along..."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b76e7f07-2b46-4d34-8e05-6e934def756c"}},"repository":{"url":"git+https://github.com/jonkofal/env.git"},"_npmVersion":"11.11.0","description":"Fast-fail environment variable accessor.","directories":{},"_nodeVersion":"24.14.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/env_0.0.16_1778600263916_0.7155747998439204","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@ampsy/env","version":"1.0.0","description":"Fast-fail environment variable accessor.","author":{"name":"Jon Kofal"},"main":"./lib/env.js","type":"module","scripts":{"test":"export $(grep -v '^#' .env | xargs) && node test/test.js","build":"echo nothing to see here, move along..."},"dependencies":{},"devDependencies":{},"publishConfig":{"access":"public"},"engines":{"node":">=24"},"repository":{"url":"git+https://github.com/jonkofal/env.git"},"gitHead":"fde9230a3fec0a7f10ca440402b3e79a6c28c360","_id":"@ampsy/env@1.0.0","bugs":{"url":"https://github.com/jonkofal/env/issues"},"homepage":"https://github.com/jonkofal/env#readme","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-6wR3wH9hF6HIVR4A15BxXvhXF14BLFT0ACDXB8Tx/0pJTzm2wdh9O/yRmpYmBCFsQjAm/MtoRFHDZ3yJBQT0Ag==","shasum":"68ff42f9c157da0fb27ca08792b8e25114aa7ea0","tarball":"https://registry.npmjs.org/@ampsy/env/-/env-1.0.0.tgz","fileCount":4,"unpackedSize":13114,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ampsy%2fenv@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCO9loY2j/4ZdgoIr3KtEEuBsxAJtI7zm7udSY63VzbxwIgZ0n42Y4vqFlAGdH/+aKD0f03HBhl8mjHQYLFOFigWE0="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b76e7f07-2b46-4d34-8e05-6e934def756c"}},"directories":{},"maintainers":[{"name":"americano-psycho","email":"jonkofal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/env_1.0.0_1778600356383_0.00017771932657995038"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-12T10:28:34.768Z","modified":"2026-05-12T15:39:16.786Z","0.0.7":"2026-05-12T10:28:35.017Z","0.0.15":"2026-05-12T15:33:37.653Z","0.0.16":"2026-05-12T15:37:44.099Z","1.0.0":"2026-05-12T15:39:16.517Z"},"bugs":{"url":"https://github.com/jonkofal/env/issues"},"author":{"name":"Jon Kofal"},"homepage":"https://github.com/jonkofal/env#readme","repository":{"url":"git+https://github.com/jonkofal/env.git"},"description":"Fast-fail environment variable accessor.","maintainers":[{"name":"americano-psycho","email":"jonkofal@gmail.com"}],"readme":"\n# Package @ampsy/env\n- Solves problem of undefined environment variables causing odd errors in code, by\n  throwing an AssertionError with a clear message when an environment variable is undefined.\n- fast-fail wrapper for environment variables.\n- Best used in code at startup, so prior to 'ready' state all required variables are resolved.\n \n# Usage\n```\nconst { get } = require('@ampsy/env');\n\n//const environmentVariableValue = get(environmentVariableName);\n\nconst REQUIRED_VAR = get('REQUIRED_VAR');\nconst OPTIONAL_VAR = get('OPTIONAL_VAR','optional value to set');\n```\n\n# See test/test.js for test cases","readmeFilename":"README.md"}