{"_id":"@loaderkit/resolve","_rev":"7-8661c2a90f851ef4140e00c9dbaac934","name":"@loaderkit/resolve","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@loaderkit/resolve","version":"1.0.0","author":{"name":"https://github.com/laverdet/"},"license":"ISC","_id":"@loaderkit/resolve@1.0.0","maintainers":[{"name":"laverdet","email":"marcel.npm@laverdet.com"}],"homepage":"https://github.com/braidnetworks/loaderkit/packages/resolve#readme","bugs":{"url":"https://github.com/braidnetworks/loaderkit/issues"},"dist":{"shasum":"5463bd60bdc4eb66b59218397188f9769d90d7e8","tarball":"https://registry.npmjs.org/@loaderkit/resolve/-/resolve-1.0.0.tgz","fileCount":30,"integrity":"sha512-HV9ywG52Tmn4rSOAO7GAw0JPoS9HhkRWwdXmlaPv+vDMxKsVKARiPMaWif+f6Myqgpr9TAwr/sTJMi3GM/Ch5A==","signatures":[{"sig":"MEUCIQD1XBafOtJVPpM3Il01Cb69Q27NmVo20/I03Lmo/+Z0AAIgTiN+Mlkehgt69fStF0KKj3X5aZmITV3RnovqOO6urwY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108499},"type":"module","exports":{"./*":"./dist/*.js"},"gitHead":"f2d25c3149b3691ecd27084bc1c3ac3e2157136d","scripts":{"test":"node --enable-source-maps --test-reporter=spec --test 'dist/__tests__/**/*.js'","clean":"rm -rf dist","prepare":"npm run -s clean; npx tsc -b"},"_npmUser":{"name":"laverdet","email":"marcel.npm@laverdet.com"},"repository":{"url":"git+https://github.com/braidnetworks/loaderkit.git","type":"git"},"_npmVersion":"10.9.0","description":"🔎 @loaderkit/resolve - General purpose nodejs module resolver ==============================================================","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@braidai/lang":"^1.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/resolve_1.0.0_1739901501648_0.4697231600842273","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@loaderkit/resolve","version":"1.0.1","author":{"name":"https://github.com/laverdet/"},"license":"ISC","_id":"@loaderkit/resolve@1.0.1","maintainers":[{"name":"laverdet","email":"marcel.npm@laverdet.com"}],"homepage":"https://github.com/braidnetworks/loaderkit/packages/resolve#readme","bugs":{"url":"https://github.com/braidnetworks/loaderkit/issues"},"dist":{"shasum":"e55a5d8b026907cee9311df4cd298c826ba7600e","tarball":"https://registry.npmjs.org/@loaderkit/resolve/-/resolve-1.0.1.tgz","fileCount":30,"integrity":"sha512-RyGq9PD/DMtn6ymFoXrRn/BfSo29QoO0m99IoTHn74cVruzepwLflgi5oWjIpQWASQNqOuCPlgLu9dS1AJ1nSQ==","signatures":[{"sig":"MEUCIQCGCdkin7VN0htpKGMUKl2YuTY5mx62VUCDj8O0h3Xn1gIgacjK3Jzyd/tjgKQSG1G6xtDcekzlvTsy3VysTK0appU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108809},"type":"module","exports":{"./*":"./dist/*.js"},"gitHead":"706df03a3090231ec18c5f727c5c4fda230c7d50","scripts":{"test":"node --enable-source-maps --test-reporter=spec --test 'dist/__tests__/**/*.js'","clean":"rm -rf dist","prepare":"npm run -s clean; npx tsc -b"},"_npmUser":{"name":"laverdet","email":"marcel.npm@laverdet.com"},"repository":{"url":"git+https://github.com/braidnetworks/loaderkit.git","type":"git"},"_npmVersion":"10.9.0","description":"[![npm version](https://badgen.now.sh/npm/v/@loaderkit/resolve)](https://www.npmjs.com/package/@loaderkit/resolve) [![isc license](https://badgen.now.sh/npm/license/@loaderkit/resolve)](https://github.com/braidnetworks/loaderkit/blob/main/LICENSE)","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@braidai/lang":"^1.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/resolve_1.0.1_1739996953717_0.40340644742269594","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@loaderkit/resolve","version":"1.0.2","author":{"name":"https://github.com/laverdet/"},"license":"ISC","_id":"@loaderkit/resolve@1.0.2","maintainers":[{"name":"laverdet","email":"marcel.npm@laverdet.com"}],"homepage":"https://github.com/braidnetworks/loaderkit/packages/resolve#readme","bugs":{"url":"https://github.com/braidnetworks/loaderkit/issues"},"dist":{"shasum":"d711555e9546e09eeff7f610674d42e86e189c15","tarball":"https://registry.npmjs.org/@loaderkit/resolve/-/resolve-1.0.2.tgz","fileCount":30,"integrity":"sha512-yTCCjuQapvRz6S30B8DyqHu1WYsbYRCww6uNsmbQU4GQVf5gJzJSB60qUHj+qBSxReLtRL/mhmhYhrIc9jVFTw==","signatures":[{"sig":"MEQCIBp75z5DkeS9o9ku8JMvPqXE8bS/l2jAa61lyZRJF7AbAiAS1sdYpUMmVww1YzedF/YxwHZes1F7OK/q9kYoKc0KRg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108815},"type":"module","exports":{"./*":"./dist/*.js"},"gitHead":"c908f8811173e1df438a4d4092605cb66c7f740b","scripts":{"test":"node --enable-source-maps --test-reporter=spec --test 'dist/__tests__/**/*.js'","clean":"rm -rf dist","prepare":"npm run -s clean; npx tsc -b"},"_npmUser":{"name":"laverdet","email":"marcel.npm@laverdet.com"},"repository":{"url":"git+https://github.com/braidnetworks/loaderkit.git","type":"git"},"_npmVersion":"10.9.0","description":"[![npm version](https://badgen.now.sh/npm/v/@loaderkit/resolve)](https://www.npmjs.com/package/@loaderkit/resolve) [![isc license](https://badgen.now.sh/npm/license/@loaderkit/resolve)](https://github.com/braidnetworks/loaderkit/blob/main/LICENSE)","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@braidai/lang":"^1.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/resolve_1.0.2_1739999420918_0.9812116781434983","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@loaderkit/resolve","version":"1.0.3","author":{"name":"https://github.com/laverdet/"},"license":"ISC","_id":"@loaderkit/resolve@1.0.3","maintainers":[{"name":"laverdet","email":"marcel.npm@laverdet.com"}],"homepage":"https://github.com/braidnetworks/loaderkit/packages/resolve#readme","bugs":{"url":"https://github.com/braidnetworks/loaderkit/issues"},"dist":{"shasum":"06d251a9c2bb821f947a7e8579ef2c79b232013d","tarball":"https://registry.npmjs.org/@loaderkit/resolve/-/resolve-1.0.3.tgz","fileCount":23,"integrity":"sha512-oo51csrgEfeHO593bqoPOGwrX093QzDWrc/7y876b/ObDqp2Hbw+rl+3s26WRXIbnhty40T403nwU4UFX3KQCg==","signatures":[{"sig":"MEUCIGfyAmT59dyo1nt6AEQr57iOsp7U2HiaC5T4sK5iQOZ8AiEAhft63cfdmYiU742w4Ga6JIAHaCFBp/D8rRSD0ee/45M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104063},"type":"module","_from":"file:loaderkit-resolve-1.0.3.tgz","exports":{"./*":"./dist/*.js"},"scripts":{"test":"node --enable-source-maps --test-reporter=spec --test 'dist/__tests__/**/*.js'","clean":"rm -rf dist"},"_npmUser":{"name":"laverdet","email":"marcel.npm@laverdet.com"},"_resolved":"/tmp/c9af5b17356ec4b0c31a756008fc531a/loaderkit-resolve-1.0.3.tgz","_integrity":"sha512-oo51csrgEfeHO593bqoPOGwrX093QzDWrc/7y876b/ObDqp2Hbw+rl+3s26WRXIbnhty40T403nwU4UFX3KQCg==","repository":{"url":"git+https://github.com/braidnetworks/loaderkit.git","type":"git"},"_npmVersion":"10.9.2","description":"[![npm version](https://badgen.now.sh/npm/v/@loaderkit/resolve)](https://www.npmjs.com/package/@loaderkit/resolve) [![isc license](https://badgen.now.sh/npm/license/@loaderkit/resolve)](https://github.com/braidnetworks/loaderkit/blob/main/LICENSE) [![gith","directories":{},"_nodeVersion":"22.13.1","dependencies":{"@braidai/lang":"^1.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/resolve_1.0.3_1740475080896_0.21203433428940688","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@loaderkit/resolve","version":"1.0.4","author":{"name":"https://github.com/laverdet/"},"license":"ISC","_id":"@loaderkit/resolve@1.0.4","maintainers":[{"name":"laverdet","email":"marcel.npm@laverdet.com"}],"homepage":"https://github.com/braidnetworks/loaderkit/packages/resolve#readme","bugs":{"url":"https://github.com/braidnetworks/loaderkit/issues"},"dist":{"shasum":"5ba1c2f4cc879d3fb2f066b71b8dc41a88bfb8e9","tarball":"https://registry.npmjs.org/@loaderkit/resolve/-/resolve-1.0.4.tgz","fileCount":23,"integrity":"sha512-rJzYKVcV4dxJv+vW6jlvagF8zvGxHJ2+HTr1e2qOejfmGhAApgJHl8Aog4mMszxceTRiKTTbnpgmTO1bEZHV/A==","signatures":[{"sig":"MEQCICVfFlX8ISiElOPQraDyvCQs2X7K4e4zSJEx+vCwKzOtAiA6ymdcglHyUWddpn0VDPX+9yKWNy9FWsiQ1+qGNMx09A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104064},"type":"module","_from":"file:loaderkit-resolve-1.0.4.tgz","exports":{"./*":"./dist/*.js"},"scripts":{"test":"node --enable-source-maps --test-reporter=spec --test 'dist/__tests__/**/*.js'","clean":"rm -rf dist"},"_npmUser":{"name":"laverdet","email":"marcel.npm@laverdet.com"},"_resolved":"/tmp/243550a7c327b7a74b5ce362cc2b0faa/loaderkit-resolve-1.0.4.tgz","_integrity":"sha512-rJzYKVcV4dxJv+vW6jlvagF8zvGxHJ2+HTr1e2qOejfmGhAApgJHl8Aog4mMszxceTRiKTTbnpgmTO1bEZHV/A==","repository":{"url":"git+https://github.com/braidnetworks/loaderkit.git","type":"git"},"_npmVersion":"10.9.2","description":"[![npm version](https://badgen.now.sh/npm/v/@loaderkit/resolve)](https://www.npmjs.com/package/@loaderkit/resolve) [![isc license](https://badgen.now.sh/npm/license/@loaderkit/resolve)](https://github.com/braidnetworks/loaderkit/blob/main/LICENSE) [![gith","directories":{},"_nodeVersion":"22.14.0","dependencies":{"@braidai/lang":"^1.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/resolve_1.0.4_1741899816900_0.8911308818894847","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@loaderkit/resolve","version":"1.0.5","author":{"name":"https://github.com/laverdet/"},"license":"ISC","_id":"@loaderkit/resolve@1.0.5","maintainers":[{"name":"laverdet","email":"marcel.npm@laverdet.com"}],"homepage":"https://github.com/laverdet/loaderkit/blob/main/packages/resolve/README.md","bugs":{"url":"https://github.com/laverdet/loaderkit/issues"},"dist":{"shasum":"a229c9731ce5904c227d09fd5ea732d5dfd555c7","tarball":"https://registry.npmjs.org/@loaderkit/resolve/-/resolve-1.0.5.tgz","fileCount":23,"integrity":"sha512-fhkdGM57xhJ7CO91MUgbQlb0ClP0AJ9vB3yoVnBTslYJqrJOCVEbOprZcxZlexdMbmTBPQqVcQYr+j4oRRtIZA==","signatures":[{"sig":"MEUCIQC75ds/8kwKXZ06yqNsGKK0rxSkgAEhM8K/OI3u5o5SkgIgE6xiYCI3fg56dN2k7b8BFVPhx2QYzlmgX2BrbZBa/0g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@loaderkit%2fresolve@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":105038},"type":"module","_from":"file:loaderkit-resolve-1.0.5.tgz","exports":{"./*":"./dist/*.js"},"scripts":{"test":"node --enable-source-maps --test-reporter=spec --test 'dist/__tests__/**/*.js'","clean":"rm -rf dist"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2655c5f5-0e1d-40bd-b497-b3198c441bc5"}},"_resolved":"/tmp/987731ea1b098521c7f65bf4b5840da7/loaderkit-resolve-1.0.5.tgz","_integrity":"sha512-fhkdGM57xhJ7CO91MUgbQlb0ClP0AJ9vB3yoVnBTslYJqrJOCVEbOprZcxZlexdMbmTBPQqVcQYr+j4oRRtIZA==","repository":{"url":"git+https://github.com/laverdet/loaderkit.git","type":"git"},"_npmVersion":"11.11.0","description":"[![npm version](https://badgen.now.sh/npm/v/@loaderkit/resolve)](https://www.npmjs.com/package/@loaderkit/resolve) [![isc license](https://badgen.now.sh/npm/license/@loaderkit/resolve)](https://github.com/braidnetworks/loaderkit/blob/main/LICENSE) [![gith","directories":{},"_nodeVersion":"24.14.1","dependencies":{"@braidai/lang":"^1.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/resolve_1.0.5_1777065505447_0.6174284002162223","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@loaderkit/resolve","type":"module","version":"1.0.6","exports":{"./*":"./dist/*.js"},"dependencies":{"@braidai/lang":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/laverdet/loaderkit.git"},"author":{"name":"https://github.com/laverdet/"},"license":"ISC","homepage":"https://github.com/laverdet/loaderkit/blob/main/packages/resolve/README.md","scripts":{"clean":"rm -rf dist","test":"node --enable-source-maps --test-reporter=spec --test 'dist/__tests__/**/*.js'"},"_id":"@loaderkit/resolve@1.0.6","description":"[![npm version](https://badgen.now.sh/npm/v/@loaderkit/resolve)](https://www.npmjs.com/package/@loaderkit/resolve) [![isc license](https://badgen.now.sh/npm/license/@loaderkit/resolve)](https://github.com/braidnetworks/loaderkit/blob/main/LICENSE) [![gith","bugs":{"url":"https://github.com/laverdet/loaderkit/issues"},"_integrity":"sha512-G8FdIoF5CypfwmD9rl8BXod5HDn8JqB0CCNBXDTaRZ+yRYhARrrSToX1zg1zy9jX3zLqigsELwhT4gNtkdQAUg==","_resolved":"/tmp/6868e5eb130392956939aba69b2cc1cf/loaderkit-resolve-1.0.6.tgz","_from":"file:loaderkit-resolve-1.0.6.tgz","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-G8FdIoF5CypfwmD9rl8BXod5HDn8JqB0CCNBXDTaRZ+yRYhARrrSToX1zg1zy9jX3zLqigsELwhT4gNtkdQAUg==","shasum":"8d45341e688faecc25b3ae919c0f45d94c4e26c9","tarball":"https://registry.npmjs.org/@loaderkit/resolve/-/resolve-1.0.6.tgz","fileCount":23,"unpackedSize":105880,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@loaderkit%2fresolve@1.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBLAKJjD6teWIaD+EEp3u9M7kkaZ4XWF1SR2laOqEsFgAiAibi132PFnINtmaI/YSxpPOo8rDDTlgm90mI/voFfERQ=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2655c5f5-0e1d-40bd-b497-b3198c441bc5"}},"directories":{},"maintainers":[{"name":"laverdet","email":"marcel.npm@laverdet.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/resolve_1.0.6_1779078388345_0.354653631152652"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-18T17:58:21.522Z","modified":"2026-05-18T04:26:28.895Z","1.0.0":"2025-02-18T17:58:21.838Z","1.0.1":"2025-02-19T20:29:13.892Z","1.0.2":"2025-02-19T21:10:21.110Z","1.0.3":"2025-02-25T09:18:01.109Z","1.0.4":"2025-03-13T21:03:37.066Z","1.0.5":"2026-04-24T21:18:25.563Z","1.0.6":"2026-05-18T04:26:28.529Z"},"bugs":{"url":"https://github.com/laverdet/loaderkit/issues"},"author":{"name":"https://github.com/laverdet/"},"license":"ISC","homepage":"https://github.com/laverdet/loaderkit/blob/main/packages/resolve/README.md","repository":{"type":"git","url":"git+https://github.com/laverdet/loaderkit.git"},"description":"[![npm version](https://badgen.now.sh/npm/v/@loaderkit/resolve)](https://www.npmjs.com/package/@loaderkit/resolve) [![isc license](https://badgen.now.sh/npm/license/@loaderkit/resolve)](https://github.com/braidnetworks/loaderkit/blob/main/LICENSE) [![gith","maintainers":[{"name":"laverdet","email":"marcel.npm@laverdet.com"}],"readme":"[![npm version](https://badgen.now.sh/npm/v/@loaderkit/resolve)](https://www.npmjs.com/package/@loaderkit/resolve)\n[![isc license](https://badgen.now.sh/npm/license/@loaderkit/resolve)](https://github.com/braidnetworks/loaderkit/blob/main/LICENSE)\n[![github action](https://github.com/braidnetworks/loaderkit/actions/workflows/build.yaml/badge.svg)](https://github.com/braidnetworks/loaderkit/actions/workflows/build.yaml)\n[![npm downloads](https://badgen.now.sh/npm/dm/@loaderkit/resolve)](https://www.npmjs.com/package/@loaderkit/resolve)\n\n🔎 @loaderkit/resolve - General purpose nodejs module resolver\n==============================================================\n\nAn accurate & abstract implementation of the nodejs module resolution algorithms. It implements both\nthe [CommonJS](https://nodejs.org/api/modules.html#all-together) and\n[modules](https://nodejs.org/api/esm.html#resolution-and-loading-algorithm) algorithms. Originally\nauthored for [arethetypeswrong](https://arethetypeswrong.github.io).\n\nSee also: [resolve](https://www.npmjs.com/package/resolve),\n[enhanced-resolve](https://github.com/webpack/enhanced-resolve), and\n[esm-resolve](https://www.npmjs.com/package/esm-resolve). The main point of this package is accuracy\nwith the default nodejs resolution algorithms.\n\n- **Does nothing that the nodejs default resolver doesn't do**\n- Runs in a web browser w/ abstract filesystems\n- Sensible TypeScript-first types\n- Shakeable ESM exports\n- Promise & synchronous implementations\n\n## Usage\n```ts\nimport { resolve, resolveSync } from '@loaderkit/resolve/esm';\nimport { resolve as resolveRequire, resolveSync as resolveRequireSync } from '@loaderkit/resolve/cjs';\nimport { defaultAsyncFileSystem, defaultSyncFileSystem } from '@loaderkit/resolve/fs';\n\n// Async module resolution\nconst resolution = await resolve(defaultAsyncFileSystem, 'react', new URL(import.meta.url));\nconsole.log(resolution.format, resolution.url);\n// format: \"addon\" | \"builtin\" | \"commonjs\" | \"json\" | \"module\" | \"wasm\"\n// url: typeof URL\n\n// Synchronous module resolution\nresolveSync(defaultSyncFileSystem, 'react', new URL(import.meta.url));\n\n// CommonJS module resolution\nawait resolveRequire(defaultAsyncFileSystem, 'lodash', new URL(import.meta.url));\nresolveRequireSync(defaultSyncFileSystem, 'lodash', new URL(import.meta.url));\n```\n\nThe `FileSystemAsync` and `FileSystemSync` interfaces can be implemented by client code as\nnecessary. For example, you could write a delegate to load the module source files from a zip file,\nfrom the internet, or whatever you want.\n","readmeFilename":"README.md"}