{"_id":"esm-env","_rev":"8-aeda71999c517161eb6ce5f5a8659cf6","name":"esm-env","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"esm-env","version":"1.0.0","author":{"url":"https://www.benmccann.com","name":"Ben McCann"},"license":"MIT","_id":"esm-env@1.0.0","maintainers":[{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"}],"homepage":"https://github.com/benmccann/esm-env","bugs":{"url":"https://github.com/benmccann/esm-env/issues"},"dist":{"shasum":"b124b40b180711690a4cb9b00d16573391950413","tarball":"https://registry.npmjs.org/esm-env/-/esm-env-1.0.0.tgz","fileCount":8,"integrity":"sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==","signatures":[{"sig":"MEUCIEPuBnZDrMgs319b/0G00AXzboyjrmj8AmGs6K4AXgSrAiEA96wVxnAe9HpJXXJ++tipb3z8pRwH0m5Yi/Ut8TaeOJs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2152,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjlOqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlSA/9E+2aiRevUlLFKpxRvKrHQXXpGNKxo298xuSv5klNC3iRCz3r\r\nMVRlN5CPpt/SiIlR7UpU/iHJscHEFgl6/tmwooZwnYD5uEl5GN2MrTrEm+NE\r\nHcGxkfB/cca0AbwEkKQSC7gw3blNvPtUADlGjxHkCMlgU/cExCmyKnxAIxDl\r\neh9gfUbDzUT4zjwh5NAyseBYCEWjK4xP5I3VGWwv1/1ZQW7dGG3Dqlwx2b1t\r\nARMnReN69M17XAnoCOnV8fUr+p1wwc69VAgmV1i31ZSTI7l5Gzydd7g9szSl\r\nQpjsKMIA+PEBKTBPf1i0mNa2XypySODYfkmNHwN4HRdGCR4rUt6NT9lyRBkM\r\n8MUo4sKmPqEsxK2bWPg1cn23L0KwuTwSjCj0WuDUGwgjfDxyJrbeOCitJZ5e\r\nCXrSGEygSX/ifOlo8Xt3R9QqYwgpLLhDwS3Gx2dOtFb2ahGEApRHwWvRgVpo\r\naoKfmWwRqcntYZJVSjYuOnk+55EyZkq4W0RckqjH0JPmu3ONymiqx6IFgcbb\r\nK8Fm9KxY1imqLVLQVlJFFBOTlDOGn60ywrp/iRzBw/RflX3+PFsRauRXtpUz\r\nCpXa9E2GndZzXdEpJScnUGl9PH2OXKQqCYfJ7etI0RFDf5zFXQbddiQP7jNA\r\nTAZePuUz/blGo0d/PGtLXxgcwINebyi48Co=\r\n=2A4g\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","browser":{"default":"./prod-browser.js","development":"./dev-browser.js"},"default":{"default":"./prod-ssr.js","development":"./dev-ssr.js"}}},"gitHead":"bddcec345fe2c4f0779a590d389320f4ec60ba2b","_npmUser":{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"},"repository":{"url":"git+https://github.com/benmccann/esm-env.git","type":"git"},"_npmVersion":"8.5.5","description":"Uses export conditions to return environment information in a way that works with major bundlers and runtimes.","directories":{},"_nodeVersion":"16.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/esm-env_1.0.0_1670271914090_0.378788795639039","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"esm-env","version":"1.1.0","author":{"url":"https://www.benmccann.com","name":"Ben McCann"},"license":"MIT","_id":"esm-env@1.1.0","maintainers":[{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"}],"homepage":"https://github.com/benmccann/esm-env","bugs":{"url":"https://github.com/benmccann/esm-env/issues"},"dist":{"shasum":"c4552e280ee0398eb5be9ff559165265148724cd","tarball":"https://registry.npmjs.org/esm-env/-/esm-env-1.1.0.tgz","fileCount":10,"integrity":"sha512-OwA6VHlemZ9xu0Ae4WjuotzJUWEBPDimGMgxHP/2OPWhKshkmlCrN2hfZaDD6E5I689OpilBkQ2/cQEy7LEwEA==","signatures":[{"sig":"MEYCIQDVH3RfPVHBJ6P0eIP1lFrjGhzPRqPvAVpYz9AXbjYX2gIhAIzpvMIM+jKmXwujrtWgnh04RcdHeeZfh0M7Nav/C0hV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3019},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"},"./node":{"import":{"node":"./true.mjs","default":"./false.mjs"},"require":{"node":"./true.cjs","default":"./false.cjs"}},"./browser":{"import":{"browser":"./true.mjs","default":"./false.mjs"},"require":{"browser":"./true.cjs","default":"./false.cjs"}},"./development":{"import":{"default":"./false.mjs","development":"./true.mjs"},"require":{"default":"./false.cjs","development":"./true.cjs"}}},"gitHead":"5720091e369a23e22bb9f9200199bcf471a7f1aa","_npmUser":{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"},"repository":{"url":"git+https://github.com/benmccann/esm-env.git","type":"git"},"_npmVersion":"10.9.0","description":"Uses export conditions to return environment information in a way that works with major bundlers and runtimes.","directories":{},"_nodeVersion":"20.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/esm-env_1.1.0_1730218299211_0.471238962783435","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"esm-env","version":"1.1.1","author":{"url":"https://www.benmccann.com","name":"Ben McCann"},"license":"MIT","_id":"esm-env@1.1.1","maintainers":[{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"}],"homepage":"https://github.com/benmccann/esm-env","bugs":{"url":"https://github.com/benmccann/esm-env/issues"},"dist":{"shasum":"d02858ce396148ecf75f298e4c320d5a929b4015","tarball":"https://registry.npmjs.org/esm-env/-/esm-env-1.1.1.tgz","fileCount":10,"integrity":"sha512-5HLucDhz5yhDlMHqEedMyD4XjyV7+4vZhUS7zXNiBdSXFrViQCIeRmf7Gcs33USDcX0aGdCH+C6ZWbxzXy3ZGg==","signatures":[{"sig":"MEUCIBGfoky25PLTPNGyYXoHY+udlIwZVpMU4emRHfvBF5w0AiEA2D5Q+dN+5EHigtJ47HJOIV688kuCVtO8LosWJXl84yw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2971},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"},"./node":{"import":{"node":"./true.mjs","default":"./false.mjs"},"require":{"node":"./true.cjs","default":"./false.cjs"}},"./browser":{"import":{"browser":"./true.mjs","default":"./false.mjs"},"require":{"browser":"./true.cjs","default":"./false.cjs"}},"./development":{"import":{"default":"./false.mjs","development":"./true.mjs"},"require":{"default":"./false.cjs","development":"./true.cjs"}}},"gitHead":"445e85b2e1ad659d0487d56105cd153b01851ebb","_npmUser":{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"},"repository":{"url":"git+https://github.com/benmccann/esm-env.git","type":"git"},"_npmVersion":"10.9.0","description":"Uses export conditions to return environment information in a way that works with major bundlers and runtimes.","directories":{},"_nodeVersion":"20.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/esm-env_1.1.1_1730219587758_0.7957991970142009","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"esm-env","version":"1.1.2","author":{"url":"https://www.benmccann.com","name":"Ben McCann"},"license":"MIT","_id":"esm-env@1.1.2","maintainers":[{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"}],"homepage":"https://github.com/benmccann/esm-env","bugs":{"url":"https://github.com/benmccann/esm-env/issues"},"dist":{"shasum":"76d189554aa251560413eecd133d1b5a86da64b4","tarball":"https://registry.npmjs.org/esm-env/-/esm-env-1.1.2.tgz","fileCount":12,"integrity":"sha512-LZFnf3QT8hjKd8ZqNRuMMnFPSSmzScu5zZttHHFEN3bqZdGbc90FiFYDtsr7T/vsSQdEiLI64FXHfF4MHTHDQw==","signatures":[{"sig":"MEQCIEogxD5EFMp2T9GSqySJGPnwv42a7/kd62dxVw0eygEcAiBeLkVim6jL4EXaH7OZJF2uiuc9PjfvUTYDiS1ov2ohiA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2816},"type":"module","types":"./index.d.ts","exports":{".":{"browser":{"node":{"default":"./browser-node.js","development":"./browser-dev-node.js"},"default":{"default":"./browser.js","development":"./browser-dev.js"}},"default":{"node:":{"default":"./node.js","development":"./dev-node.js"},"default":{"default":"./none.js","development":"./dev.js"}}}},"gitHead":"432d8a636441efa644ca93b9873d53629b7943c7","_npmUser":{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"},"repository":{"url":"git+https://github.com/benmccann/esm-env.git","type":"git"},"_npmVersion":"10.9.0","description":"Uses export conditions to return environment information in a way that works with major bundlers and runtimes.","directories":{},"_nodeVersion":"20.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/esm-env_1.1.2_1730235748048_0.2295524855087645","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"esm-env","version":"1.1.3","author":{"url":"https://www.benmccann.com","name":"Ben McCann"},"license":"MIT","_id":"esm-env@1.1.3","maintainers":[{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"}],"homepage":"https://github.com/benmccann/esm-env","bugs":{"url":"https://github.com/benmccann/esm-env/issues"},"dist":{"shasum":"d3b975e69f1894eaf860078c41420b922e27f5d3","tarball":"https://registry.npmjs.org/esm-env/-/esm-env-1.1.3.tgz","fileCount":12,"integrity":"sha512-AbD2I2oWdBqJJLBpUuLIQsn8jCaxT/9Ygc1RILLt4KEvD48u0SKTSzrg0Re4yBiINF2U3zMcUCjkUqzyXz46kg==","signatures":[{"sig":"MEYCIQDHRL7nNsUwQDk1UYXSsWzoeKpbNYR9602LJ37rMYF7PgIhAIT8JP5hLeI9KuJ0RheWrFyiGS/LrSj712MFMIAIr/hq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2844},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","browser":{"node":{"default":"./browser-node.js","development":"./browser-dev-node.js"},"default":{"default":"./browser.js","development":"./browser-dev.js"}},"default":{"node:":{"default":"./node.js","development":"./dev-node.js"},"default":{"default":"./none.js","development":"./dev.js"}}}},"gitHead":"29169f35b29acdaced66e3e65f57fb20ecddb623","_npmUser":{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"},"repository":{"url":"git+https://github.com/benmccann/esm-env.git","type":"git"},"_npmVersion":"10.9.0","description":"Uses export conditions to return environment information in a way that works with major bundlers and runtimes.","directories":{},"_nodeVersion":"20.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/esm-env_1.1.3_1730241486563_0.029997597648580454","host":"s3://npm-registry-packages"}},"1.1.4":{"name":"esm-env","version":"1.1.4","author":{"url":"https://www.benmccann.com","name":"Ben McCann"},"license":"MIT","_id":"esm-env@1.1.4","maintainers":[{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"}],"homepage":"https://github.com/benmccann/esm-env","bugs":{"url":"https://github.com/benmccann/esm-env/issues"},"dist":{"shasum":"340c78b03ee2298d31c5b9fab9793468ede828b0","tarball":"https://registry.npmjs.org/esm-env/-/esm-env-1.1.4.tgz","fileCount":12,"integrity":"sha512-oO82nKPHKkzIj/hbtuDYy/JHqBHFlMIW36SDiPCVsj87ntDLcWN+sJ1erdVryd4NxODacFTsdrIE3b7IamqbOg==","signatures":[{"sig":"MEYCIQC6/2MgENZuKn7MZC+gm//yzq3VLw3yFymC66CkXYjXOwIhAM8bsoCniB1OR/oI4KXuDdRwNCxj1kkOTAw0/2CHo0Pg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2843},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","browser":{"node":{"default":"./browser-node.js","development":"./browser-dev-node.js"},"default":{"default":"./browser.js","development":"./browser-dev.js"}},"default":{"node":{"default":"./node.js","development":"./dev-node.js"},"default":{"default":"./none.js","development":"./dev.js"}}}},"gitHead":"180feb982f0356a56809eed7263b2fa57c61f12f","_npmUser":{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"},"repository":{"url":"git+https://github.com/benmccann/esm-env.git","type":"git"},"_npmVersion":"10.9.0","description":"Uses export conditions to return environment information in a way that works with major bundlers and runtimes.","directories":{},"_nodeVersion":"20.17.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/esm-env_1.1.4_1730242065309_0.7161221811614087","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"esm-env","version":"1.2.0","author":{"url":"https://www.benmccann.com","name":"Ben McCann"},"license":"MIT","_id":"esm-env@1.2.0","maintainers":[{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"}],"homepage":"https://github.com/benmccann/esm-env","bugs":{"url":"https://github.com/benmccann/esm-env/issues"},"dist":{"shasum":"637c0586244c0eb14bfd7f5e96a6b43b9e8f5c2b","tarball":"https://registry.npmjs.org/esm-env/-/esm-env-1.2.0.tgz","fileCount":9,"integrity":"sha512-OhSQuHL3mUcaQHjGe8UMG8GsJIJHYYz0flR0h9fiTPNMupLMkb7TvcRD0EeJXW5a8GHBgfz08b6FDLNK7kkPQA==","signatures":[{"sig":"MEUCIQCWolQjUCMe8HzHrPU2ZMOgjWOCyMa6rdh/SdE3WS94pQIgWiHGrtOdJmdMY7/Bap3MFHgeoSDU+5sP+L0MWvd5IV4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/esm-env@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4099},"type":"module","_from":"file:esm-env-1.2.0.tgz","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./node":{"node":"./true.js","default":"./false.js"},"./browser":{"browser":"./true.js","default":"./false.js"},"./development":{"default":"./dev-fallback.js","production":"./false.js","development":"./true.js"}},"_npmUser":{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"},"_resolved":"/tmp/da58135ead90b43b9a602adc9c6302ab/esm-env-1.2.0.tgz","_integrity":"sha512-OhSQuHL3mUcaQHjGe8UMG8GsJIJHYYz0flR0h9fiTPNMupLMkb7TvcRD0EeJXW5a8GHBgfz08b6FDLNK7kkPQA==","repository":{"url":"git+https://github.com/benmccann/esm-env.git","type":"git"},"_npmVersion":"10.9.0","description":"Uses export conditions to return environment information in a way that works with major bundlers and runtimes.","directories":{},"sideEffects":false,"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/esm-env_1.2.0_1732750059249_0.4359846359260868","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"esm-env","version":"1.2.1","author":{"url":"https://www.benmccann.com","name":"Ben McCann"},"license":"MIT","_id":"esm-env@1.2.1","maintainers":[{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"}],"homepage":"https://github.com/benmccann/esm-env","bugs":{"url":"https://github.com/benmccann/esm-env/issues"},"dist":{"shasum":"34c2a0ba60582948afbe7bd779bc66f9d3aece7e","tarball":"https://registry.npmjs.org/esm-env/-/esm-env-1.2.1.tgz","fileCount":10,"integrity":"sha512-U9JedYYjCnadUlXk7e1Kr+aENQhtUaoaV9+gZm1T8LC/YBAPJx3NSPIAurFOC0U5vrdSevnUJS2/wUVxGwPhng==","signatures":[{"sig":"MEQCIGisgVwrxJs1EOHHfW+ge48GjbjGlJy5b2d2CkrwFJHHAiAoB035Xp8YIwuRLFMER5SsnPqz5kSibK3N+QPTEM0gqA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/esm-env@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3939},"type":"module","_from":"file:esm-env-1.2.1.tgz","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./node":{"node":"./true.js","default":"./false.js"},"./browser":{"browser":"./true.js","default":"./browser-fallback.js","production":"./false.js","development":"./false.js"},"./development":{"default":"./dev-fallback.js","production":"./false.js","development":"./true.js"}},"_npmUser":{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"},"_resolved":"/tmp/4ce35b8ae9f5928381d7a0f7ce217d6c/esm-env-1.2.1.tgz","_integrity":"sha512-U9JedYYjCnadUlXk7e1Kr+aENQhtUaoaV9+gZm1T8LC/YBAPJx3NSPIAurFOC0U5vrdSevnUJS2/wUVxGwPhng==","repository":{"url":"git+https://github.com/benmccann/esm-env.git","type":"git"},"_npmVersion":"10.9.0","description":"Uses export conditions to return environment information in a way that works with major bundlers and runtimes.","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/esm-env_1.2.1_1732839756717_0.8323242244923852","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"esm-env","version":"1.2.2","repository":{"type":"git","url":"git+https://github.com/benmccann/esm-env.git"},"license":"MIT","homepage":"https://github.com/benmccann/esm-env","author":{"name":"Ben McCann","url":"https://www.benmccann.com"},"type":"module","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./browser":{"browser":"./true.js","development":"./false.js","production":"./false.js","default":"./browser-fallback.js"},"./development":{"development":"./true.js","production":"./false.js","default":"./dev-fallback.js"},"./node":{"node":"./true.js","default":"./false.js"}},"_id":"esm-env@1.2.2","types":"./index.d.ts","description":"Uses export conditions to return environment information in a way that works with major bundlers and runtimes.","bugs":{"url":"https://github.com/benmccann/esm-env/issues"},"_integrity":"sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==","_resolved":"/tmp/6e50e3b52c302feda5fe59fd0d2b5495/esm-env-1.2.2.tgz","_from":"file:esm-env-1.2.2.tgz","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==","shasum":"263c9455c55861f41618df31b20cb571fc20b75e","tarball":"https://registry.npmjs.org/esm-env/-/esm-env-1.2.2.tgz","fileCount":10,"unpackedSize":3784,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/esm-env@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgIAoqE9KspDIt+v1qxmi15G4Mj39SPSC5/4NOoG8oDwIhAIB5XaPji82HqHYoBif6Pmm7aEOatpGAXuo5ZCMRj9x+"}]},"_npmUser":{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"},"directories":{},"maintainers":[{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/esm-env_1.2.2_1736368353989_0.1587185467136174"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-05T20:25:14.035Z","modified":"2025-01-08T20:32:34.507Z","1.0.0":"2022-12-05T20:25:14.246Z","1.1.0":"2024-10-29T16:11:39.374Z","1.1.1":"2024-10-29T16:33:07.939Z","1.1.2":"2024-10-29T21:02:28.278Z","1.1.3":"2024-10-29T22:38:06.778Z","1.1.4":"2024-10-29T22:47:45.558Z","1.2.0":"2024-11-27T23:27:39.413Z","1.2.1":"2024-11-29T00:22:36.887Z","1.2.2":"2025-01-08T20:32:34.154Z"},"bugs":{"url":"https://github.com/benmccann/esm-env/issues"},"author":{"name":"Ben McCann","url":"https://www.benmccann.com"},"license":"MIT","homepage":"https://github.com/benmccann/esm-env","repository":{"type":"git","url":"git+https://github.com/benmccann/esm-env.git"},"description":"Uses export conditions to return environment information in a way that works with major bundlers and runtimes.","maintainers":[{"name":"benmccann","email":"benjamin.j.mccann@gmail.com"}],"readme":"# esm-env\n\nUses export conditions to return environment information in a way that works with major bundlers and runtimes.\n\n## Usage\n\nInstall with `npm install esm-env`, then import as needed:\n\n```js\nimport { BROWSER, DEV, NODE } from 'esm-env';\n```\n\nSpecify `conditions` in your bundler or runtime. For example:\n- [Node.js](https://nodejs.org/api/cli.html#-c-condition---conditionscondition)\n- [Bun](https://bun.sh/docs/runtime/modules#custom-conditions)\n- [Vite/Vitest](https://vite.dev/config/shared-options#resolve-conditions)\n- [webpack](https://webpack.js.org/configuration/resolve/#resolveconditionnames)\n\nIf `esm-env` is used in both bundled code and an externalized library, you will need to specify conditions both at build-time and run-time.\n\n## Acknowledgements\n\nThank you to [dominikg](https://github.com/dominikg) for refining the approach used by this library to suggest a more scalable method for adding additional conditions.\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}