{"_id":"import-from-esm","_rev":"20-9a53e11b39ed84522bb0c3eb859f3530","name":"import-from-esm","dist-tags":{"alpha":"1.4.0-alpha.1","latest":"2.0.0"},"versions":{"0.1.0":{"name":"import-from-esm","version":"0.1.0","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@0.1.0","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"dist":{"shasum":"067d8d7dc92976e6e5f5d0e5ac8a1631fe28065c","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-0.1.0.tgz","fileCount":13,"integrity":"sha512-4ZVNO+CSeLMBHOsvmNx1M0W2yvBQunhXPedpsIs4RMR4J8NbbA8H1Rvvvw06sg1gKBDH5d4wpgCOCLiyNzi8nA==","signatures":[{"sig":"MEUCICGyc4TyDqTv74MlNsAI68U4muiS+Akn1tw3wBfDH97FAiEAobVbx0PqTH4bX3eyeaCjXP7bA3eNbQkKEflLt46NwPM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55876},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"c447383611f802d395fddc6ae6c241ebe2c73037","scripts":{"test":"ava && tsd"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"9.6.7","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","tsd":"^0.29.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_0.1.0_1696553004279_0.6959263016345427","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"import-from-esm","version":"0.1.1","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@0.1.1","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":85,"reporter":["text","json"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"793ef97b73360d6558fe7e2958fe37a54b26e3f5","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-0.1.1.tgz","fileCount":12,"integrity":"sha512-XGx2KHdXFdqQIRpb+NdzqWKjsNbEXzPTeXTQzdzywpOXREjdd9UcKxNvGRMjGBkBTURekqUnTeIo76vW5A/AhQ==","signatures":[{"sig":"MEUCIE0RDNEuOqRfTSqaud5f8G3stOv2Px191+BpCbD+SaPNAiEAj4u3S7DyKSc04t9YHV+Z/6LZAALcr2DHv0wOO3u7pFg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56817},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"b9972c5ddfbb00c221c065e168d7daf5ecfe45a2","scripts":{"lint":"xo","test":"c8 ava && tsd","lint:fix":"xo --fix"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.0","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"18.18.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","@semantic-release/changelog":"^6.0.3","@insurgentlab/conventional-changelog-preset":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_0.1.1_1697043060073_0.6446741038904291","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"import-from-esm","version":"1.0.0","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.0.0","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":85,"reporter":["text","json"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"c8d32753c435be355a29dafb977d780664a83462","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.0.0.tgz","fileCount":12,"integrity":"sha512-9Rg+eQ3qC2sonLssXHTjmVmN3LBkh1PvWe7H3rCAFjR4vW/2mfiLQIwhwO9vvQvJUhM8DymRt0AneYFI6Fty2g==","signatures":[{"sig":"MEUCIEgRSWA+ykySq2qCNPOKA5UUb71QgPHaUa1NuskTZ/gmAiEAhdsdA8EP4UsIrtran2SNJfS98Srsr1ipaVjYVo53+bU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56481},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"0af90bcbcd62382b05f5e64f3af8bbb3b86648a8","scripts":{"lint":"xo","test":"c8 ava && tsd","lint:fix":"xo --fix"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.0","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"18.18.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","@semantic-release/changelog":"^6.0.3","@insurgentlab/conventional-changelog-preset":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.0.0_1697064603944_0.8835916561140771","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"import-from-esm","version":"1.0.1","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.0.1","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":85,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"4d124e63d122b96a0e50e9b430ae49e00596f44f","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.0.1.tgz","fileCount":12,"integrity":"sha512-qCt4f74n/UgObKajlE+DT+Wtzpvk6oEA6sdOjWy/+efgDCZpQnQPPUlzGa4HwsY5FTvVF9Yc8bRjHBpVjdmgTg==","signatures":[{"sig":"MEYCIQCfz6+XiIcOaabichVKA25SFo69Asw/L8HFdIyxcW1LwwIhAOZ6eJCeD7oN96skZX2UarwoBEi6P0ojh9+EV46PVQkD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56724},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"128c9a665a523a2082ced6a1f9c27ca8a21a541a","scripts":{"lint":"xo","test":"c8 ava && tsd --files tests/**/*.test-d.ts","lint:fix":"xo --fix"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.0","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"18.18.0","_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","semantic-release":"22.0.5","@semantic-release/git":"10.0.1","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.0.1_1697129413058_0.9484865852901831","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"import-from-esm","version":"1.0.2","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.0.2","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":85,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"5a694d5020bbb2b81db699fe41d4b7538000528b","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.0.2.tgz","fileCount":12,"integrity":"sha512-3ffS93KSiD1sObPDvXAg5TeLGNEGJo6Sde3G6GIPWMZF/dn5tbMZ//0PyK2txckzaPgZymw3r3GE54zXmfCq/g==","signatures":[{"sig":"MEQCIFTeSDD7sYz93uBg85KvJ93An/dTDYsmSj1UblEuuzDqAiBxQH/MUWJtjGxj1QVnzflM4IqcAd6yF7Q/sDohACWyPg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56689},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"b22ab1b33a5ca960a6d30d81d2fd0572d7c7b04f","scripts":{"knip":"knip","lint":"xo","test":"c8 npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:fuzz && npm run test:tsd","test:ava":"ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.0","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.35.0","@fast-check/ava":"1.1.6","semantic-release":"22.0.5","@semantic-release/git":"10.0.1","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.0.2_1697879506179_0.778297101661334","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"import-from-esm","version":"1.0.3","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.0.3","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":85,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"d8158336e8a695292561f6b03c4abdfc17330054","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.0.3.tgz","fileCount":12,"integrity":"sha512-bncoEU7L4Vi5OoeygZuBUP9IC1AxavLR4UMCwZ9FtujOhDG1PDEo7IpCdfeOxKfrMCGwoK6UXpF9q/cXTA/ejg==","signatures":[{"sig":"MEYCIQCftAi7EckJ2OEDSEv17UVFg16VJZSj4Rqw8pz4ap9bFAIhAJp+Lch1slHInVwlY4T9w9mFw2HFNkctHO7GDT8P4MaL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56810},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"d846f869717ee59c89b4517ef9f09e336edf2901","scripts":{"knip":"knip","lint":"xo","test":"c8 npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:fuzz && npm run test:tsd","test:ava":"ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.1","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"20.9.0","_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.38.6","cross-env":"^7.0.3","@fast-check/ava":"1.1.6","semantic-release":"22.0.6","@semantic-release/git":"10.0.1","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.0.3_1699226640873_0.604541853864665","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"import-from-esm","version":"1.1.0","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.1.0","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"3ccc844e2dfd2cad5ac25d0ae999aacaa09aad5f","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.1.0.tgz","fileCount":5,"integrity":"sha512-GN1/s5OMZbBz4xV0dG/0ha4UtIOnamzpn1W4fJxs6ptBZPBklsZ07WF2Vhgl912oVRExRSbvg9Ul7+TmK/8Kbg==","signatures":[{"sig":"MEUCIBEAG1OJ4UIYiWhvsCdHFe9vkQmTOJzb6g26VrMKiqSxAiEAy00ZsMBkV/i/BXDyOYt8qV4WXWS1H1MbJJZZwsKkRIU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9899},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"93ccb822dc8f9f4d50348e74cda51e48deac1911","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","postinstall":"cd tests/fixture/nested/ && npm ci","test:nested":"cd tests/fixture/nested/ && npm test"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"deprecated":"contains a failing post-install script","repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"9.6.7","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"18.17.1","dependencies":{"import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.38.6","cross-env":"7.0.3","@fast-check/ava":"1.1.6","semantic-release":"22.0.6","@semantic-release/git":"10.0.1","@insurgent/export-map-test":"1.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.1.0_1699304535476_0.2014176457650434","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"import-from-esm","version":"1.1.1","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.1.1","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"05d8a702fe4c2163ba919c771150bc0d8f59ab61","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.1.1.tgz","fileCount":5,"integrity":"sha512-RfJRq9WG/XtxbqxuzrHpj5y7ZopK57NWirWstwaMTQnMU6bI0K2YvzgmifueCnunhj8uRD4HtF8JiUesia7KnA==","signatures":[{"sig":"MEUCICImYOjYfHBZ5EoRs5+NXGgsc9B8r6Qs0E23+Xvw+dTKAiEAv5eA+Jz5ALi2M0GxLH+48SlrDsc8fFUmli6S7RUMLEI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9854},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"6fbb7214340df5071079a55701bebab656a45f16","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"9.6.7","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"18.17.1","dependencies":{"import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.38.6","cross-env":"7.0.3","@fast-check/ava":"1.1.6","semantic-release":"22.0.6","@semantic-release/git":"10.0.1","@insurgent/export-map-test":"1.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.1.1_1699306157315_0.04555092317798892","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"import-from-esm","version":"1.1.2","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.1.2","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"3ea963a44c7004808c29cff8b5e424e99fdd779b","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.1.2.tgz","fileCount":5,"integrity":"sha512-eiTpN9aVpkAOteuKJHEXmA6tAvTnV5yFX+5TVvL7brJDkW0VZFYgorqDMxXBFMOf0P35+lbMIvVrcZSO8dzPZg==","signatures":[{"sig":"MEUCIEHwmZ4R1KJTDdBIxOkLq+Td1bLUxtTx4/MBSr6m5HCGAiEAkwDlHhnY+fn8RIvGhc0rok+BOAaOCneAuizMmMTYdWM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9425},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"95eddf63fc3f6f15009cdf390835523158ea181d","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.3","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"20.9.0","dependencies":{"import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.38.6","cross-env":"7.0.3","@fast-check/ava":"1.1.6","semantic-release":"22.0.6","@semantic-release/git":"10.0.1","@insurgent/export-map-test":"1.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.1.2_1699309088877_0.2086732662838986","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"import-from-esm","version":"1.1.3","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.1.3","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"cd95a4626bb59cea77557f0daa71cb95eeebb2c1","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.1.3.tgz","fileCount":5,"integrity":"sha512-1BxFAthpQf5qabfPBaFBRAGIh8TVt6WB4ujqedfoF4oVjwyl6S/dZv26gL5kgPhbO1XBqu4hcELUlV/+IPsC3A==","signatures":[{"sig":"MEUCIQDqF9DClV2qfolNCVo2mcLx9tAv0+MTkwI1OwIm1W+4pAIgOKWQDtTgVhaBSfXzO0Ut0I1iKTgYNMfToPEtMFSkmkk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9435},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"17d9fa8c80747730062d4c1feee4f88a0f1fd803","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.3","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"20.9.0","dependencies":{"import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.39.0","cross-env":"7.0.3","@fast-check/ava":"1.1.6","semantic-release":"22.0.6","@semantic-release/git":"10.0.1","@insurgent/export-map-test":"1.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.1.3_1699399702359_0.1878008823099404","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"import-from-esm","version":"1.2.0","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.2.0","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"645255dada660771583be033af3d5cc5ce092cd4","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.2.0.tgz","fileCount":5,"integrity":"sha512-W5LA8SOGlPYCiC3dLNJUtA45+bREeQ+8gpIcjaCTVmV986C8lkYH7DQm8btpdv08/5btyDmZB0tUc7sWUQ95Hw==","signatures":[{"sig":"MEQCICDZGqsL9my0mcawEUzEhSlncXClgLXN1I8ThLHnRMCbAiAZK7BW2lPwVDOFpTbg185Mq2lqumeHpxSCPGX12aI2EQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9955},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"d843edb1622286894228af19279bdb45936e4ef6","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz:regression && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test","test:ava:watch":"c8 ava tests/e2e.test.js --watch","test:fuzz:regression":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz-regression.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.3","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"20.9.0","dependencies":{"import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.39.0","cross-env":"7.0.3","@fast-check/ava":"1.1.6","semantic-release":"22.0.7","@semantic-release/git":"10.0.1","@insurgent/export-map-test":"1.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.2.0_1699471108211_0.9081067514643457","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"import-from-esm","version":"1.2.1","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.2.1","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"326cee2df3e7b7013f4cef0c9c9b048dbf3b7f42","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.2.1.tgz","fileCount":5,"integrity":"sha512-Nly5Ab75rWZmOwtMa0B0NQNnHGcHOQ2zkU/bVENwK2lbPq+kamPDqNKNJ0hF7w7lR/ETD5nGgJq0XbofsZpYCA==","signatures":[{"sig":"MEUCIQCxoAcs09xy4V66fRvWV+CG58txpjPygY4V64bMZd0g3AIgRj9V/COOz2F9KIYli2a17wozc5flHLxVne1QKgrxJR4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9605},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"cfc97facb7ca1fd7cd3dc23288d94d9ed90dd14b","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz:regression && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test","test:ava:watch":"c8 ava tests/e2e.test.js --watch","test:fuzz:regression":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz-regression.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.3","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"20.9.0","dependencies":{"import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.39.0","cross-env":"7.0.3","@fast-check/ava":"1.1.6","semantic-release":"22.0.7","@semantic-release/git":"10.0.1","@insurgent/export-map-test":"1.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.2.1_1699533640561_0.05152714779083345","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"import-from-esm","version":"1.2.2","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.2.2","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"ea38a47fac2674fc6040281963b000a986a20d60","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.2.2.tgz","fileCount":5,"integrity":"sha512-3zUdjs/TkCPknfR1qoWlApqIfODZfO2tt4H39DsiOXgRW5//ctDhN7I+I3sRLhdIzGiJ+uLBo772grnCmLggMA==","signatures":[{"sig":"MEUCIQCMiM3DhPURpDRu68vNQIOlvIzv5dvLq9TXTNWz0nVIFAIgEmmDw5zLk7sn4XuanWlOGjquiQjUNYmwDgECIm2YJiY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9611},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"6be38fa32b2f6e1367545a92f014b553c878a18d","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz:regression && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test","test:ava:watch":"c8 ava tests/e2e.test.js --watch","test:fuzz:regression":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz-regression.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.3","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"20.9.0","dependencies":{"import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.41.0","cross-env":"7.0.3","@fast-check/ava":"1.1.6","semantic-release":"22.0.7","@semantic-release/git":"10.0.1","@insurgent/export-map-test":"1.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.2.2_1700123997294_0.0494568759748113","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"import-from-esm","version":"1.3.0","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.3.0","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"1389908fb481c5dd9a0bba3943433dd2a1bb4b50","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.3.0.tgz","fileCount":5,"integrity":"sha512-CTpWGC2fWwYooBY6TmgajBieWqgGXTQcrsuKJVeKjiOgItnHLXqA+1SkhX5p/7wFkeq4nAtHRs0JZD90IMYAkQ==","signatures":[{"sig":"MEUCICsD8Y8bkF3lccdMUWCvqdyPA9XS67O3nrJBxyJgarTRAiEAwigXaGxfPd4om19uMb2kovWHlkavOLRNmddxi8cDeQc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10558},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"534ae48881e5accd32e2153752ca018ae7bf83f4","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz:regression && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test","test:ava:watch":"c8 ava tests/e2e.test.js --watch","test:fuzz:regression":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz-regression.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.3","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"20.9.0","dependencies":{"debug":"^4.3.4","import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.41.0","cross-env":"7.0.3","@types/debug":"^4.1.12","@fast-check/ava":"1.1.6","semantic-release":"22.0.7","@semantic-release/git":"10.0.1","@insurgent/json-main-test":"1.0.0","@insurgent/export-map-test":"1.0.0","@insurgent/json-index-test":"1.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.3.0_1700146943998_0.6730045031519627","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"import-from-esm","version":"1.3.1","keywords":["require","resolve","path","module","from","like","import","path"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.3.1","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"af05accf68b20cf832df86ed57038b7f92cdf0fb","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.3.1.tgz","fileCount":5,"integrity":"sha512-YltaeDglQ6wDZOC8ZAY2I8vK1Ag4XVbs4GhlvNALWz0ee5V+CMkcBhAKbs1iuJZ3fmfgrKFCDRwliM3OxyQMLA==","signatures":[{"sig":"MEYCIQDN9opdAiusnWNj8omzP73jGJKNEh2XP7EzsRbNNLnL+AIhAPpLQ0VneEkH5COpgloRe69cpLJ4rnE3L3m+m9hH9poF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10455},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"844fe7a2a67a0a5a76ee8dc25f143acc45127516","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz:regression && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test","test:ava:watch":"c8 ava tests/e2e.test.js --watch","test:fuzz:regression":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz-regression.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.3","description":"Import a module like with `require()` but from a given path (for ESM)","directories":{},"_nodeVersion":"20.9.0","dependencies":{"debug":"^4.3.4","import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.41.0","cross-env":"7.0.3","@types/debug":"^4.1.12","@fast-check/ava":"1.1.6","semantic-release":"22.0.7","@semantic-release/git":"10.0.1","@insurgent/json-main-test":"1.0.0","@insurgent/export-map-test":"1.0.0","@insurgent/json-index-test":"1.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.3.1_1700148219965_0.05202060085211446","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"import-from-esm","version":"1.3.2","keywords":["import","module","resolve","path","esm"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.3.2","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"d6c8984a1656045c7744ac397ff28e846924b24b","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.3.2.tgz","fileCount":5,"integrity":"sha512-5IeOH/8/fVZq/US/OMDwAHgbAUXPZ7Z/KUM6pvCXeuCPZfrZSxkzEPkfoDXUliR9kMrtX/H+wJOZCq0+MH158A==","signatures":[{"sig":"MEUCIFKdRWfPMAscbflJFlcnf0ILsV+cJybnK1zjzwpuSMvfAiEA0HCpZsVREYdzePaLnNBKVmnhVCEfDlvE0tyeZHID5n4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12925},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"df8e9da5050db954c59dd9b93744497bffe46de7","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz:regression && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test","test:ava:watch":"c8 ava tests/e2e.test.js --watch","test:fuzz:regression":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz-regression.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.3","description":"Import a module like with require() but from a given path (for ESM)","directories":{},"_nodeVersion":"20.9.0","dependencies":{"debug":"^4.3.4","import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.41.2","cross-env":"7.0.3","@types/debug":"4.1.12","@fast-check/ava":"1.1.6","semantic-release":"22.0.7","@semantic-release/git":"10.0.1","@insurgent/json-main-test":"1.0.0","@insurgent/export-map-test":"1.0.0","@insurgent/json-index-test":"1.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.3.2_1700354726590_0.6207768143766825","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"import-from-esm","version":"1.3.3","keywords":["import","module","resolve","path","esm"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.3.3","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":95,"include":["index.js"],"branches":90,"reporter":["text","lcov"],"functions":100,"statements":95,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"eea1c4ad86a54bf425b3b71fca56d50215ccc6b7","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.3.3.tgz","fileCount":5,"integrity":"sha512-U3Qt/CyfFpTUv6LOP2jRTLYjphH6zg3okMfHbyqRa/W2w6hr8OsJWVggNlR4jxuojQy81TgTJTxgSkyoteRGMQ==","signatures":[{"sig":"MEUCIQC6AxwNTKsmVbU+VBWWOawaS0rpu0+PfOhBA51HPKUn+gIgMBXeYYIPWD0uDeGsV4OCa9S3JaEYVJhObIZj11JNUok=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12929},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"08e762b841659d84e47d245f2355d36a655e8786","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz:regression && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test","test:ava:watch":"c8 ava tests/e2e.test.js --watch","test:fuzz:regression":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz-regression.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.2.3","description":"Import a module like with require() but from a given path (for ESM)","directories":{},"_nodeVersion":"20.9.0","dependencies":{"debug":"^4.3.4","import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.29.0","knip":"2.41.2","cross-env":"7.0.3","@types/debug":"4.1.12","@fast-check/ava":"1.1.6","semantic-release":"22.0.7","@semantic-release/git":"10.0.1","@insurgent/json-main-test":"2.0.0","@insurgent/export-map-test":"1.0.0","@insurgent/json-index-test":"2.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.3.3_1700356490697_0.9996449691288354","host":"s3://npm-registry-packages"}},"1.4.0-alpha.1":{"name":"import-from-esm","version":"1.4.0-alpha.1","keywords":["import","module","resolve","path","esm"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.4.0-alpha.1","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":100,"include":["index.js"],"branches":100,"reporter":["text","lcov"],"functions":100,"statements":100,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"c4785e5229ea09d23db2eaa3ed93137a6f574c65","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.4.0-alpha.1.tgz","fileCount":5,"integrity":"sha512-ElBczWtHrR16ClkCQqCKntk2l3Llj02RnyQFGiWuttkDHLsnRW6wPc3DTi0YhK5n9MVEZHDL4oOGUjs71QMDqQ==","signatures":[{"sig":"MEQCIGV8hTU8rCl4h0zpLW2gzXqZTZe9OuHyqLM7prKDCOM7AiBvlFHH820tlbNY0pYq6BBvCJnHqmLgu2zcn69BgPs8Bw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13396},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"4052e05d7f46bdee62e6c922ad0729c6b99378df","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz:regression && npm run test:fuzz && npm run test:tsd","test:ava":"cross-env NODE_OPTIONS=--experimental-import-meta-resolve c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=\"--no-warnings --experimental-import-meta-resolve\" ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test","test:ava:watch":"npm run test:ava -- --watch","test:fuzz:regression":"cross-env NODE_OPTIONS=\"--no-warnings --experimental-import-meta-resolve\" ava tests/fuzz-regression.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.3.0","description":"Import a module like with require() but from a given path (for ESM)","directories":{},"_nodeVersion":"20.10.0","dependencies":{"debug":"^4.3.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"8.0.1","xo":"0.56.0","ava":"5.3.1","tsd":"0.30.3","knip":"3.13.2","cross-env":"7.0.3","@types/debug":"4.1.12","@fast-check/ava":"1.2.1","semantic-release":"22.0.12","@semantic-release/git":"10.0.1","@insurgent/json-main-test":"2.0.0","@insurgent/export-map-test":"1.0.1","@insurgent/json-index-test":"2.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.4.0-alpha.1_1705676780400_0.7649361600406213","host":"s3://npm-registry-packages"}},"1.3.4":{"name":"import-from-esm","version":"1.3.4","keywords":["import","module","resolve","path","esm"],"author":{"url":"https://github.com/sheerlox","name":"Pierre Cavin","email":"me@sherlox.io"},"license":"MIT","_id":"import-from-esm@1.3.4","maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"contributors":[{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sheerlox/import-from-esm#readme","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"c8":{"lines":100,"include":["index.js"],"branches":100,"reporter":["text","lcov"],"functions":100,"statements":100,"check-coverage":true},"xo":{"rules":{"import/order":"off","object-curly-spacing":["error","always"],"unicorn/no-await-expression-member":"off"},"ignores":["lib/"]},"dist":{"shasum":"39e97c84085e308fe66cf872a667046b45449df0","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-1.3.4.tgz","fileCount":5,"integrity":"sha512-7EyUlPFC0HOlBDpUFGfYstsU7XHxZJKAAMzCT8wZ0hMW7b+hG51LIKTDcsgtz8Pu6YC0HqRVbX+rVUtsGMUKvg==","signatures":[{"sig":"MEUCIESxKuLd2QcKTugaTN2Mln0QLy1FxbH6/woiNaDNT9ujAiEAtm746BLUXN+VUaxYEOSfiz5IpIaGp3bTfwNBq7PXJG4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13401},"main":"index.js","type":"module","types":"./index.d.ts","engines":{"node":">=16.20"},"gitHead":"9ae22b4f7266dd15ea535fd5a37bf2089e44c200","scripts":{"knip":"knip","lint":"xo","test":"npm run test:all && npm run knip","lint:fix":"xo --fix","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz:regression && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","test:fuzz":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz.test.js","test:nested":"cd tests/fixture/nested/ && npm ci && npm test","test:ava:watch":"c8 ava tests/e2e.test.js --watch","test:fuzz:regression":"cross-env NODE_OPTIONS=--no-warnings ava tests/fuzz-regression.test.js"},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"repository":{"url":"git+https://github.com/sheerlox/import-from-esm.git","type":"git"},"_npmVersion":"10.4.0","description":"Import a module like with require() but from a given path (for ESM)","directories":{},"_nodeVersion":"20.12.1","dependencies":{"debug":"^4.3.4","import-meta-resolve":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"9.1.0","xo":"0.56.0","ava":"5.3.1","tsd":"0.31.0","knip":"4.6.0","cross-env":"7.0.3","@types/debug":"4.1.12","@fast-check/ava":"1.2.1","semantic-release":"23.0.2","@semantic-release/git":"10.0.1","@insurgent/subpaths-test":"1.0.0","@insurgent/json-main-test":"2.0.0","@insurgent/export-map-test":"1.0.1","@insurgent/json-index-test":"2.0.0","@semantic-release/changelog":"6.0.3","@insurgentlab/conventional-changelog-preset":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/import-from-esm_1.3.4_1713205160749_0.004305949727475111","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"import-from-esm","version":"2.0.0","main":"index.js","type":"module","description":"Import a module like with require() but from a given path (for ESM)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sheerlox/import-from-esm.git"},"author":{"name":"Pierre Cavin","email":"me@sherlox.io","url":"https://github.com/sheerlox"},"contributors":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"}],"engines":{"node":">=18.20"},"scripts":{"test":"npm run test:all && npm run knip","test:all":"npm run test:ava && npm run test:nested && npm run test:fuzz:regression && npm run test:fuzz && npm run test:tsd","test:ava":"c8 ava tests/e2e.test.js","test:ava:watch":"c8 ava tests/e2e.test.js --watch","test:nested":"cd tests/fixture/nested/ && npm ci && npm test","test:fuzz":"ava tests/fuzz.test.js","test:fuzz:regression":"ava tests/fuzz-regression.test.js","test:tsd":"tsd --files tests/**/*.test-d.ts","knip":"knip","lint":"xo","lint:fix":"xo --fix"},"keywords":["import","module","resolve","path","esm"],"dependencies":{"debug":"^4.3.4","import-meta-resolve":"^4.0.0"},"devDependencies":{"@fast-check/ava":"1.2.1","@insurgent/export-map-test":"1.0.1","@insurgent/json-index-test":"2.0.0","@insurgent/json-main-test":"2.0.0","@insurgent/subpaths-test":"1.0.0","@insurgent/conventional-changelog-preset":"10.0.0","@semantic-release/changelog":"6.0.3","@semantic-release/git":"10.0.1","@types/debug":"4.1.12","ava":"5.3.1","c8":"9.1.0","knip":"4.6.0","semantic-release":"24.2.0","tsd":"0.31.2","xo":"0.56.0"},"xo":{"rules":{"unicorn/no-await-expression-member":"off","import/order":"off","object-curly-spacing":["error","always"]},"ignores":["lib/"]},"c8":{"include":["index.js"],"check-coverage":true,"reporter":["text","lcov"],"statements":100,"branches":100,"functions":100,"lines":100},"_id":"import-from-esm@2.0.0","gitHead":"a57041a3e398b3b319a98605503de1afc79a7b0b","types":"./index.d.ts","bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"homepage":"https://github.com/sheerlox/import-from-esm#readme","_nodeVersion":"22.12.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-YVt14UZCgsX1vZQ3gKjkWVdBdHQ6eu3MPU1TBgL1H5orXe2+jWD006WCPPtOuwlQm10NuzOW5WawiF1Q9veW8g==","shasum":"184eb9aad4f557573bd6daf967ad5911b537797a","tarball":"https://registry.npmjs.org/import-from-esm/-/import-from-esm-2.0.0.tgz","fileCount":5,"unpackedSize":13305,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/import-from-esm@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBz0rACP7naMUwDnaL59Z8wOs8/99SsHYYH3jsvlh3I4AiEAmfip+Mu7dmz9z4KoYtlNSQcY+tfYZgmBnQ4Cc50Y+jQ="}]},"_npmUser":{"name":"sheerlox","email":"me@sherlox.io"},"directories":{},"maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/import-from-esm_2.0.0_1735606035146_0.2946459527046372"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-06T00:43:24.278Z","modified":"2024-12-31T00:47:15.701Z","0.1.0":"2023-10-06T00:43:24.603Z","0.1.1":"2023-10-11T16:51:00.277Z","1.0.0":"2023-10-11T22:50:04.200Z","1.0.1":"2023-10-12T16:50:13.270Z","1.0.2":"2023-10-21T09:11:46.557Z","1.0.3":"2023-11-05T23:24:01.102Z","1.1.0":"2023-11-06T21:02:15.672Z","1.1.1":"2023-11-06T21:29:17.593Z","1.1.2":"2023-11-06T22:18:09.090Z","1.1.3":"2023-11-07T23:28:22.598Z","1.2.0":"2023-11-08T19:18:28.377Z","1.2.1":"2023-11-09T12:40:40.750Z","1.2.2":"2023-11-16T08:39:57.440Z","1.3.0":"2023-11-16T15:02:24.217Z","1.3.1":"2023-11-16T15:23:40.203Z","1.3.2":"2023-11-19T00:45:26.832Z","1.3.3":"2023-11-19T01:14:50.881Z","1.4.0-alpha.1":"2024-01-19T15:06:20.560Z","1.3.4":"2024-04-15T18:19:20.933Z","2.0.0":"2024-12-31T00:47:15.316Z"},"bugs":{"url":"https://github.com/sheerlox/import-from-esm/issues"},"author":{"name":"Pierre Cavin","email":"me@sherlox.io","url":"https://github.com/sheerlox"},"license":"MIT","homepage":"https://github.com/sheerlox/import-from-esm#readme","keywords":["import","module","resolve","path","esm"],"repository":{"type":"git","url":"git+https://github.com/sheerlox/import-from-esm.git"},"description":"Import a module like with require() but from a given path (for ESM)","contributors":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"}],"maintainers":[{"name":"sheerlox","email":"me@sherlox.io"}],"readme":"# import-from-esm\n\n[![Version](https://img.shields.io/npm/v/import-from-esm?logo=npm)](https://www.npmjs.com/package/import-from-esm)\n[![Monthly Downloads](https://img.shields.io/npm/dm/import-from-esm)](https://www.npmjs.com/package/import-from-esm)\n[![Test](https://img.shields.io/github/actions/workflow/status/sheerlox/import-from-esm/release.yml?logo=github)](https://github.com/sheerlox/import-from-esm/actions/workflows/release.yml)\n[![CodeQL](https://img.shields.io/github/actions/workflow/status/sheerlox/import-from-esm/codeql.yml?logo=github&label=CodeQL)](https://github.com/sheerlox/import-from-esm/actions/workflows/codeql.yml)\n[![Coverage](https://img.shields.io/sonar/coverage/sheerlox_import-from-esm?logo=sonarcloud&server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/summary/overall?id=sheerlox_import-from-esm)\n[![OpenSSF Scorecard](https://img.shields.io/ossf-scorecard/github.com/sheerlox/import-from-esm?label=openssf%20scorecard)\n](https://securityscorecards.dev/viewer/?uri=github.com/sheerlox/import-from-esm)\n\n## Overview\n\n> Import a module like with [`require()`](https://nodejs.org/api/modules.html#modules_require_id) but from a given path (for ESM)\n\nThis library intends to be an _almost_ drop-in replacement of [`import-from`](https://github.com/sindresorhus/import-from) (from which it is forked), exposing the same API and behavior but also supporting ES modules (ESM). Just add `await` before `importFrom`/`importFrom.silent`\n\n## Motivation\n\nThe main benefit of using `import-from` is that it abstracts the need to resolve the path and create a `require` statement. [Its code](https://github.com/sindresorhus/import-from/blob/v4.0.0/index.js) is really straightforward:\n\n<!-- prettier-ignore-start -->\n```js\n(fromDirectory, moduleId) => createRequire(path.resolve(fromDirectory, \"noop.js\"))(moduleId);\n```\n<!-- prettier-ignore-end -->\n\nIn the case of `import-from-esm`, there are a few additional benefits because of the way ESM works:\n\n1. Importing a package installed along a library (in the parent application) from that library is no longer possible ([which was the issue that made me work on this library](https://github.com/semantic-release/release-notes-generator/pull/544#issuecomment-1745455518)). You need to use `import.meta.resolve`, which is behind an experimental flag (although there's a ponyfill available at [wooorm/import-meta-resolve](https://github.com/wooorm/import-meta-resolve), which `import-from-esm` uses under-the-hood).\n2. If the file you're trying to import (whether relative, package, export map, etc ...) is a JSON file, you need [to detect that and use](https://github.com/sheerlox/import-from-esm/blob/v1.3.1/index.js#L33-L37) import assertions or `require` (while the former is still in experimental).\n3. File extensions are now mandatory for relative paths. `import-from-esm` re-introduces [`require`'s file extension discovery](https://nodejs.org/docs/latest-v18.x/api/modules.html#file-modules).\n\nAs you can see, there is quite a bit of complexity that [is abstracted behind `import-from-esm`](https://github.com/sheerlox/import-from-esm/blob/v1.3.1/index.js). The first bullet point issue affected both [`@semantic-release/commit-analyzer`](https://github.com/semantic-release/commit-analyzer/pull/537/files#diff-a558e4411f9515691b462dfd89640ec649509db79a4a86c5c8860d7bff173f95R28) and [`@semantic-release/release-notes-generator`](https://github.com/semantic-release/release-notes-generator/pull/544/files#diff-bee027b39eb704f3c940d54960f4f26693260c52d72707ac17d72f38f66da7d5R30). After spending hours on research to solve the issue, I realized that the work I was doing would benefit others as well, so I decided to create a package out of it.\n\nAs a proponent of ESM, I have put a lot of thought into poly-filling `require` features for `import`, but finally came to the conclusion that developing a package to facilitate the ecosystem transition to ESM by reducing friction was a good thing.\n\n## Install\n\n```\n$ npm install import-from-esm\n```\n\n## Usage\n\n```js\nimport importFrom from \"import-from-esm\";\n\n// there is a file at `./foo/bar.{js,mjs,cjs,json}`\n\nawait importFrom(\"foo\", \"./bar\");\n```\n\n## API\n\n### importFrom(fromDirectory, moduleId)\n\nLike `require()`, throws when the module can't be found.\n\n### importFrom.silent(fromDirectory, moduleId)\n\nReturns `undefined` instead of throwing when the module can't be found.\n\n#### fromDirectory\n\nType: `string`\n\nDirectory to import from.\n\n#### moduleId\n\nType: `string`\n\nWhat you would use in `require()`.\n\n## Tip\n\nCreate a partial using a bound function if you want to import from the same `fromDir` multiple times:\n\n```js\nconst importFromFoo = importFrom.bind(null, \"foo\");\n\nimportFromFoo(\"./bar\");\nimportFromFoo(\"./baz\");\n```\n","readmeFilename":"README.md"}