{"_id":"es-iife","_rev":"7-33aa0885c395a6296f9cae7961dd8c57","name":"es-iife","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"es-iife","version":"0.1.0","keywords":["es","import","export","transform","iife"],"author":{"name":"eight04","email":"eight04@gmail.com"},"license":"MIT","_id":"es-iife@0.1.0","maintainers":[{"name":"eight04","email":"eight04@gmail.com"}],"homepage":"https://github.com/eight04/es-iife#readme","bugs":{"url":"https://github.com/eight04/es-iife/issues"},"dist":{"shasum":"6a2e08e315235ff0eac231f4ae26ecdba2c86bba","tarball":"https://registry.npmjs.org/es-iife/-/es-iife-0.1.0.tgz","fileCount":4,"integrity":"sha512-AnIWz4E/nZdEpmLG+k5mrWVyMrk1L6ThodQk5fZvSJUxLIbGBVPyhp9x9UnyPsO1EHWflliGwQp3Ja9R1JPH5w==","signatures":[{"sig":"MEYCIQCEnrW42BpsqH/cI1yJyBg9GSJRb9rezhLxSAme2EAbogIhAL7AO6lATjgaLCXOKoiYNxH379l32JYLBvfoqGHIrgfH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhRAaCRA9TVsSAnZWagAA+U0QAJoA8C6W9WsdKp9cMgsy\ncpUJJJC7o7WCCEyV4dHnPWhOFcqlmfqvOwI5aJI2PE2vhFCQLGDVAHWfmOqK\ncRuoiiszqW+htpOcGWLEE37800yJT7+Mc4xhGuWT5zD+KSq7Dfj/W5mBNzix\n2DSsqFbHRjhtDxK9STXz09kd48HUAcpgJEj8b5eQflWRFR/5r/UbDxdZHMek\nyadEWuHAUdO3larwaIoCwRZGSpmQ2QTgllpZ2Ykv085tnLAVQTxX6qFknQeX\nRF8+9orF2MHnUdl8tCBdDmCoEeJAqdWa140ffs7P5EFNQUP2Z4PjQf1OTUdO\nLhtKcHeCDJ6EvLVT7SMVqStpCOPJcik9Xs8dccbuOn8kPPu4H9/JmNAcYqpZ\nQLWFn3kdju2tw9qgsOQiOF7RyuXu1oXC/+BxGa4r4LgHZRD1a/8hp1SCc+As\nPrhQcG4LYgvHxqJS96xRY4HBIxl6wR5UhETHOe9Kn/Hooxu+h7ta96OYmHg3\n6wlDcN/qyXkhQNcCeWQCHyrPcrIHAbMUAeP+jw/AjxMsxl9rCos6BxE1Xv53\nLTKyp/f7Ho2KIEKSeZwcbq86Uga4H1YZMak42HiAhv4oT1xFYCocdjZ3n0DI\nHbfDdlf6ZGNjiMDXY0WRIUyGxw9SDwcCJ/U8kPbZXSntd24y7LnVw97EDmWf\nHHth\r\n=2dSk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","files":["lib"],"gitHead":"a1ba7e92ab2116bb2e5171b50612b010d8cb7535","scripts":{"test":"eslint **/*.js --cache && nyc --reporter=html mocha","preversion":"npm test","postversion":"git push --follow-tags && npm publish"},"_npmUser":{"name":"eight04","email":"eight04@gmail.com"},"repository":{"url":"git+https://github.com/eight04/es-iife.git","type":"git"},"_npmVersion":"6.4.0","description":"Transform ES module into a simple IIFE.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"camelcase":"^5.0.0","is-reference":"^1.1.0","magic-string":"^0.25.0","estree-walker":"^0.5.1","rollup-pluginutils":"^2.0.1"},"eslintIgnore":["test/cases","coverage"],"_hasShrinkwrap":false,"devDependencies":{"nyc":"^12.0.2","acorn":"^5.5.3","mocha":"^5.1.1","sinon":"^6.1.5","eslint":"^5.4.0"},"_npmOperationalInternal":{"tmp":"tmp/es-iife_0.1.0_1535447065549_0.9034765538491394","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"es-iife","version":"0.1.1","keywords":["es","import","export","transform","iife"],"author":{"name":"eight04","email":"eight04@gmail.com"},"license":"MIT","_id":"es-iife@0.1.1","maintainers":[{"name":"eight04","email":"eight04@gmail.com"}],"homepage":"https://github.com/eight04/es-iife#readme","bugs":{"url":"https://github.com/eight04/es-iife/issues"},"dist":{"shasum":"aacf596b1f40ebfa673e9368e7f968e65ca1d113","tarball":"https://registry.npmjs.org/es-iife/-/es-iife-0.1.1.tgz","fileCount":4,"integrity":"sha512-6C2hk6IBewKXCip2RSnHccQeTwl5Z4zfnMwzlVUlj1QdSqKEDIXDqKKheFOcwZkHYj/J0sOZyCTpvljeRY107Q==","signatures":[{"sig":"MEYCIQCjV4PmzR+Ufm3TPlwk90+hF3jVgBErIW6baiHY11DKKAIhAKrMBzUK6akK55I82/kjE4L7v90Xc8CuZ0AfcE9HtF1+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhUCTCRA9TVsSAnZWagAASOAP/idKNditJzTpRottwmb6\n/FRPZECbFBRGD+ZtnMRpBkRtbDF0ORtpPDV3s79/wHS7UFwdxZANhGjZypb/\ngDXl0NC2Kv8Ng51od0UWD+Ly8v3xy5191aNEaCpH4dv4vhtQj+wWo6GqSJDG\n4OJM3lms6wa0QuacpZLO/rgk3k/eViUxI5D9HrjjWv/CiKzemyIrH3W3H9ec\nxaLKQQt40ijUh8veLuzp9UtlobmGM+mgCc5S80mHs20WR5DoMTDMK6dkvdVM\nqoKVOrMSXI7QyPq1jf0SPuJDKld4NGgzIfobHb6dL8DhcMVmkUA9tqp4OKDm\nQSnZ0tHh3AWfJNdZgeGKlfl2RhW+5aU4o0S0NyeY+x57v9pdliPKN+Ti9JD+\nRq+0NzE4w+RquJnNTvWlNdVt8s4DiOCsvKtHGJ6PojmxcPbJNcVG7EAHuviD\nNQ+S5iPQyrQVi4yGr9qeuE846QUVIjDDvI7Ok/bl6XIPS0XmX/wIE99gTGB+\n6pSCxWQ0EFkENyrwcE2Y+//n/eUYR00Rs6soupcaMsQ7PbCN203po/jSZeeR\nVVVYJECfhd/W2Zm/5sxjBSrSaaF+zgNDp27KRsCdIqxhtgBOv1iuKsXHYNJG\ns7LCtA5t0lCae5/ReioipuUmRLpzN/RgZQDyYo5mTXB21ROznSDMALji8nXq\nfhy3\r\n=n6wp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","files":["lib"],"gitHead":"53e5f7f34b0f42d5a2c20b26c3ea00e4671c3352","scripts":{"test":"eslint **/*.js --cache && nyc --reporter=html mocha","preversion":"npm test","postversion":"git push --follow-tags && npm publish"},"_npmUser":{"name":"eight04","email":"eight04@gmail.com"},"repository":{"url":"git+https://github.com/eight04/es-iife.git","type":"git"},"_npmVersion":"6.4.0","description":"Transform ES module into a simple IIFE.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"camelcase":"^5.0.0","is-reference":"^1.1.0","magic-string":"^0.25.0","estree-walker":"^0.5.1","rollup-pluginutils":"^2.0.1"},"eslintIgnore":["test/cases","coverage"],"_hasShrinkwrap":false,"devDependencies":{"nyc":"^12.0.2","acorn":"^5.5.3","mocha":"^5.1.1","sinon":"^6.1.5","eslint":"^5.4.0"},"_npmOperationalInternal":{"tmp":"tmp/es-iife_0.1.1_1535459474423_0.895532394474043","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"es-iife","version":"0.2.0","keywords":["es","import","export","transform","iife"],"author":{"name":"eight04","email":"eight04@gmail.com"},"license":"MIT","_id":"es-iife@0.2.0","maintainers":[{"name":"eight04","email":"eight04@gmail.com"}],"homepage":"https://github.com/eight04/es-iife#readme","bugs":{"url":"https://github.com/eight04/es-iife/issues"},"dist":{"shasum":"5e706ff347718aad5ed7c16d2a296f546e771fec","tarball":"https://registry.npmjs.org/es-iife/-/es-iife-0.2.0.tgz","fileCount":4,"integrity":"sha512-7WfZ3/picg2PENH0mpH+hIeBUru9fEiYTewfmvQ19pFDZKFKlkcmJT6G6G7PsrhHXapNpDU7L6/mUUFG43iWOA==","signatures":[{"sig":"MEUCIQC6bliCBGM0HEwX+gKPa2BD8BvMSHPWmD7zHpxDOsn+aQIgIkLe+MGR0fwBdXGX2tlsY8WGbj/e3SfabbnXG4+E3QI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9529,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdU4j+CRA9TVsSAnZWagAApswP/2ZvsznyWj675XKGEG9G\ngIPSaHRoN0i9IvwYyabvF5RoMnZZhj8p9QxgTOZ8+OM1oT6F2+Tu1uIxgNRs\nh5x2EgfKd1dyxk0RZuXOEai0G0OzI7kewR4pnLJC3IHNzZOOWsD15IOUTYRv\nko+N7rtSyh1hK3MqZpLlc+F3Sb4gUdZQnL5fUbtuIu7hle4iq4bSl2w0VmwC\n+slSSqOmvIHzW+w5Qe3mNDO7tmtIowcDZu62+vDcPB9SI8UQlFGOH3XHrad+\nWqwXCwpo4+ojdShWSvdHXDUE/BCS/6W3m2c3bQIsDswmKRk3IfyFvdOHjDom\nolG+1/kC8McUVsSLFqZF+W2/1tmyTVGA6VO6L8hpxt7S1DHCoTG33HIupM5x\nNGMCAOhKXmjoiB4XZNi1RgxBofTs6PY2Bc5Xl2Utl6GZJ5hLkW3/t4WQ61H1\nY09XsYnIjdU0ygx1mDcKNMSUqiZ4J+HFS0TvOM9e9EgNfMjflDydLmf9qr0U\nfqUk1Cwcy+XgeN4VbRVh0y+4MlCu4Xt3Df5+0bW4/3+bxFpLM41J5Uun5Ub+\nlXXTx50OjSgwUMB4LC1DOZ0FsInAxWq6KeUyPT4+UcY+mzlORw2Tl62t3YFO\nBhioOnCFCPSAKyFIN4NaoQVmShaKojiW2AH0zbRafjEt+oNa4EJzHBynx4ba\nA9Vc\r\n=p/Sj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"2a16b5ef85a9c15e06b5756b00e8c94375ce5b53","scripts":{"test":"eslint **/*.js --cache && nyc --reporter=html mocha","preversion":"npm test","postversion":"git push --follow-tags && npm publish"},"_npmUser":{"name":"eight04","email":"eight04@gmail.com"},"repository":{"url":"git+https://github.com/eight04/es-iife.git","type":"git"},"_npmVersion":"6.9.0","description":"Transform ES module into a simple IIFE.","directories":{},"_nodeVersion":"12.1.0","dependencies":{"camelcase":"^5.0.0","is-reference":"^1.1.0","magic-string":"^0.25.0","estree-walker":"^0.5.1","rollup-pluginutils":"^2.8.1"},"eslintIgnore":["test/cases","coverage"],"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","acorn":"^5.5.3","mocha":"^5.1.1","sinon":"^6.1.5","eslint":"^5.16.0"},"_npmOperationalInternal":{"tmp":"tmp/es-iife_0.2.0_1565755645811_0.2661425274165048","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"es-iife","version":"0.2.1","keywords":["es","import","export","transform","iife"],"author":{"name":"eight04","email":"eight04@gmail.com"},"license":"MIT","_id":"es-iife@0.2.1","maintainers":[{"name":"eight04","email":"eight04@gmail.com"}],"homepage":"https://github.com/eight04/es-iife#readme","bugs":{"url":"https://github.com/eight04/es-iife/issues"},"dist":{"shasum":"59532614e6fc6f3ab85f1425db79c3686dde9610","tarball":"https://registry.npmjs.org/es-iife/-/es-iife-0.2.1.tgz","fileCount":4,"integrity":"sha512-tB0Q4IdZYt6VYc+nwESuFRlG0dgs2XSQNoqPzGTahCxW5nuE4JhAKKxHVRzydssFcxunhVtUtUpwqw83Hx1t0w==","signatures":[{"sig":"MEQCIAFhH8YB3kdqMBk+GRytz2WSJrudkVgI6xeBy7JpFbKdAiB36zV3neABRJlDjTOS53Zh2Vefml4TUtHkS/NJgdAQpg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9732,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmnPHCRA9TVsSAnZWagAAmjkP/j/gvWqx1Z251ay8AOds\n27X4ME29Uda1ZIqrkQAEI44lVWk+rh2yEXCdOCwb+aiESfcL27RRId9MLed3\nYx8XRVppmk8z1jifHnjvWZclRT7RXEwsZ9vNRKdcda4Uqw/yrFftrOlKGh5K\n/fU9iqP8ijj2ozDDHJSbGA3glNeFtSvkli6KFT0zG+uOYfN2NdBSxmCNODy/\nWbEcyodiuFfLhLm6pV4QPAszvhiprzlfwkOooIKGo9Xl+w9n1kMX1Kb2okME\nbPgdR3XRzGeINpqIqbaoLW3kzSmFJgLgVXD0OtnLnOiXWC+PBrA5Cra+kVQO\nRN8V4kEvO2boaJq5enaYO/W6Lc3sBiAYI93nmncfbdOrAGAc2idW1Zxp85Pc\niOdSreQXLn/9h/PrTZd6HnxEF3e1JGPTAauShTyWVbiBi/KTzd/HTerjb49C\nU4MZ4nigrfD8jCN5x6K+VBn4Ufv3328xPU3w97AdYHmMIh4u4CG0G/8CG02C\nIIrAgTOhOC6ETUpKdRmmCmwsCxfvyyM0MgOqn6vim3FBDBKr+FqzPyLb0N1W\n0qkYrJZzgAIYK7wlWECZfRDuY3mVdd/0tqB0XybzbhVw0PQ2RPLahnB6rgXD\n7jBACy3p4RQ2+5vxKEYMeoGrfGXgn0RvSsuzp0W80XD5c7Bl7q5rZsn6md4e\nDKD1\r\n=iFM5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"dbacd0b6e76660ea42959d026fa0b23178e0abcd","scripts":{"test":"eslint **/*.js --cache && c8 --reporter=html mocha","preversion":"npm test","postversion":"git push --follow-tags && npm publish"},"_npmUser":{"name":"eight04","email":"eight04@gmail.com"},"repository":{"url":"git+https://github.com/eight04/es-iife.git","type":"git"},"_npmVersion":"7.0.3","description":"Transform ES module into a simple IIFE.","directories":{},"_nodeVersion":"15.0.1","dependencies":{"camelcase":"^6.2.0","is-reference":"^1.2.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^4.1.0"},"eslintIgnore":["test/cases","coverage"],"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.3.5","acorn":"^8.0.4","mocha":"^8.2.0","sinon":"^9.2.1","eslint":"^7.12.1"},"_npmOperationalInternal":{"tmp":"tmp/es-iife_0.2.1_1603957702890_0.7083437960412848","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"es-iife","version":"0.2.2","keywords":["es","import","export","transform","iife"],"author":{"name":"eight04","email":"eight04@gmail.com"},"license":"MIT","_id":"es-iife@0.2.2","maintainers":[{"name":"eight04","email":"eight04@gmail.com"}],"homepage":"https://github.com/eight04/es-iife#readme","bugs":{"url":"https://github.com/eight04/es-iife/issues"},"dist":{"shasum":"8582f81ba7edfd3353393de4c0b89a24ca52a70a","tarball":"https://registry.npmjs.org/es-iife/-/es-iife-0.2.2.tgz","fileCount":4,"integrity":"sha512-4TwowD4ZJKlwL/Ix3BClKBaWRyH28spveFP0hDfPya1cLFDXuqUKR23guHsEUYrmf/nOLaRaXckIWYc5Zdpaxw==","signatures":[{"sig":"MEUCIH7NnOr4/4n2KL8IRf5tq7tiGRVcb97IN0XMvIVUiumRAiEAgS2W96dd40ZutDR4m/Z4afcjwZaiJCJ7iueKOU3NqOU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLfpjCRA9TVsSAnZWagAA7LoP/1X9HP499sKSV3PZ9jZl\nN2zfH5EYiwIWnz5zaNBiumAKC9LuNkvnbYV947YSa4cpl22efNe4qWIX4MEP\nAb2D03G+Q/x9uAFTdF32I4QdsLaGTB+FziFHLvX61hRSAxkP2O4tDGupBhJ5\n0yg91ymu2M1rlAtJpPw7l1gaV/hADpNHLt0m5FEihdq/0rm7cPvVeMx1DScZ\nfjrx5RX1FRzoOIqEaPtAyV1HE7ELZvm086MhwZ/YQF0ugk0cvYocs4Sjoice\n2Lbc8zImvhqaI21KkQ0txv+AeK6frvjMO1Ik8YZBf4+tOk+Xah+1nDUSYxLn\nCv0A+Us+3vp3XUbTtu95ydv5AKWgp2FgHrJSj7RGbyBWTHlZNi7y0b6sYVnF\nAat/HJgKPt4QJPn+XRxRhHSoP/PtSdvB9azMZNUUwTJLV6fML+A1dXMzh22F\nGVJ22iUSPMbTMFS6DbdLpf/fhM/XecIgljfeSwjMmVXHnYaRLK753LYUbQKK\n2inBX0b/oWLuBgXisFU6A8I+Vi2LZIrC+o1ZvDR3gwWSHwDRaJB7j9jYnEM/\nb5YncQLYdKSG3xGF2gCnKlX86HlnPzqsYBfYgGMl1BSNZhrYLPTSeteajg7X\nWzYC+Qk+CotOVawovDeIRmkx6rrY3CSEq8Fobp75M5sujMJMiP8qW21gBSCu\nOCaS\r\n=XU/0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"d5e7a574b555e5e13178a70f08eaf1345f7e29e0","scripts":{"test":"eslint **/*.js --cache && c8 --reporter=html mocha","preversion":"npm test","postversion":"git push --follow-tags && npm publish"},"_npmUser":{"name":"eight04","email":"eight04@gmail.com"},"repository":{"url":"git+https://github.com/eight04/es-iife.git","type":"git"},"_npmVersion":"7.5.3","description":"Transform ES module into a simple IIFE.","directories":{},"_nodeVersion":"15.5.1","dependencies":{"camelcase":"^6.2.0","is-reference":"^1.2.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^4.1.0"},"eslintIgnore":["test/cases","coverage"],"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.3.5","acorn":"^8.0.4","mocha":"^8.2.0","sinon":"^9.2.1","eslint":"^7.12.1"},"_npmOperationalInternal":{"tmp":"tmp/es-iife_0.2.2_1613625955307_0.8734010777313861","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"es-iife","version":"0.3.0","description":"Transform ES module into a simple IIFE.","keywords":["es","import","export","transform","iife"],"main":"index.js","scripts":{"test":"eslint . --cache && c8 --reporter=lcov mocha","preversion":"npm test","postversion":"git push --follow-tags && npm publish"},"repository":{"type":"git","url":"git+https://github.com/eight04/es-iife.git"},"author":{"name":"eight04","email":"eight04@gmail.com"},"license":"MIT","devDependencies":{"@eslint/js":"^10.0.1","acorn":"^8.16.0","c8":"^11.0.0","eslint":"^10.1.0","globals":"^17.4.0","mocha":"^11.7.5"},"dependencies":{"@rollup/pluginutils":"^5.3.0","camelcase":"^9.0.0","is-reference":"^3.0.3","magic-string":"^0.30.21","zimmerframe":"^1.1.4"},"gitHead":"f3db80bcf6b9b6a5898d9770505fd125b4043cb3","_id":"es-iife@0.3.0","bugs":{"url":"https://github.com/eight04/es-iife/issues"},"homepage":"https://github.com/eight04/es-iife#readme","_nodeVersion":"25.8.2","_npmVersion":"11.6.2","dist":{"integrity":"sha512-7Z4sojQvBGqZQd8Gn01cHS/dzEkcYXxImTRQUQpk70UmtoLROhg+KL4usHIIpqnpipqfQ+qnsJc35okeHuwoBw==","shasum":"fedb65756b527c5f9d6c2c6263f1e79a111701eb","tarball":"https://registry.npmjs.org/es-iife/-/es-iife-0.3.0.tgz","fileCount":4,"unpackedSize":15793,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDZQFZFjMp1IqFsKmE/lTpxtiyvEiph7cfsY3dfETeS6AiEAsIyimFxb++n5qIARbmbUAqU7L7C7qP0/sYqG05msaFY="}]},"_npmUser":{"name":"eight04","email":"eight04@gmail.com"},"directories":{},"maintainers":[{"name":"eight04","email":"eight04@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/es-iife_0.3.0_1775116753958_0.16772698644559902"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-28T09:04:25.548Z","modified":"2026-04-02T07:59:14.255Z","0.1.0":"2018-08-28T09:04:25.676Z","0.1.1":"2018-08-28T12:31:14.484Z","0.2.0":"2019-08-14T04:07:25.947Z","0.2.1":"2020-10-29T07:48:23.024Z","0.2.2":"2021-02-18T05:25:55.482Z","0.3.0":"2026-04-02T07:59:14.129Z"},"bugs":{"url":"https://github.com/eight04/es-iife/issues"},"author":{"name":"eight04","email":"eight04@gmail.com"},"license":"MIT","homepage":"https://github.com/eight04/es-iife#readme","keywords":["es","import","export","transform","iife"],"repository":{"type":"git","url":"git+https://github.com/eight04/es-iife.git"},"description":"Transform ES module into a simple IIFE.","maintainers":[{"name":"eight04","email":"eight04@gmail.com"}],"readme":"es-iife\n=======\n\n[![Build Status](https://travis-ci.com/eight04/es-iife.svg?branch=master)](https://travis-ci.com/eight04/es-iife)\n[![codecov](https://codecov.io/gh/eight04/es-iife/branch/master/graph/badge.svg)](https://codecov.io/gh/eight04/es-iife)\n[![install size](https://packagephobia.now.sh/badge?p=es-iife)](https://packagephobia.now.sh/result?p=es-iife)\n\nTransform ES module into a simple IIFE.\n\nFeatures\n--------\n\n* `import` statements are resolved to global variables.\n* `export` statements are exported as a global variable.\n\nThere are more samples under `test/cases` folder.\n\nUsage\n-----\n\n```js\nconst {parse} = require(\"acorn\");\nconst {transform} = require(\"es-iife\");\nconst code = `\nimport foo from \"./foo.js\";\nconst main = (value) => return foo(value);\nexport default main;\n`;\nconst result = await transform({\n  code,\n  parse,\n  name: \"doFoo\",\n  resolveGlobal: (name) => {\n    if (name === \"./foo.js\") {\n      return \"FOO\";\n    }\n  }\n})\nconsole.log(result.code);\n/* ->\nvar doFoo = (function () {\n\nconst main = (value) => return FOO(value);\n\nreturn main;\n})();\n*/\n```\n\nAPI reference\n-------------\n\nThis module exports following members.\n\n* `transform`: A function which can convert ES module synax into an IIFE.\n\n### transform\n\n```js\nasync transform({\n  code: String,\n  parse?: Function,\n  ast?: Object,\n  sourcemap?: Boolean = false,\n  strict?: Boolean = false,\n  \n  resolveGlobal?: (importPath: String) => globalVariableName: String,\n  name?: String\n}) => {code: String, map?: SourceMap}\n```\n\nArguments:\n\n* `code` - the JavaScript source code that would be transformed.\n* `parse` - a parser function which can parse JavaScript code into ESTree.\n* `ast` - AST object. If undefined then use `parse(code)`.\n* `sourcemap` - if true then generate the sourcemap.\n* `strict` - add `use strict` directive.\n* `resolveGlobal` - a function receiving an import path and return a global variable name.\n* `name` - The variable name that exports will be assigned to.\n\nReturns:\n\n* `code` - the code after transformed.\n* `map` - The source map object generated by [`magicString.generateMap`](https://github.com/Rich-Harris/magic-string#sgeneratemap-options-). If `sourcemap` is false then the map is null.\n\nChangelog\n---------\n\n* 0.3.0 (Apr 2, 2026)\n\n  - Change: bump dependencies.\n  - Change: now `transform` is an async function.\n  - Fix: handle reassigned exports e.g. svelte.\n\n* 0.2.2 (Feb 18, 2021)\n\n  - Add: `strict` option.\n\n* 0.2.1 (Oct 29, 2020)\n\n  - Fix: object shorthand issue.\n  - Bump dependencies. Fix for-loop issue.\n\n* 0.2.0 (Aug 14, 2019)\n\n  - Change: define default export with `var`.\n\n* 0.1.1 (Aug 28, 2018)\n\n  - Fix: export from statements.\n\n* 0.1.0 (Aug 28, 2018)\n\n  - Initial release.\n","readmeFilename":"README.md"}