{"name":"oxc-resolver","version":"5.0.1","description":"Oxc Resolver Node API","main":"index.js","browser":"browser.js","license":"MIT","homepage":"https://oxc.rs","repository":{"type":"git","url":"git+https://github.com/oxc-project/oxc-resolver.git"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"napi":{"binaryName":"resolver","packageName":"@oxc-resolver/binding","wasm":{"browser":{"fs":true}},"targets":["x86_64-pc-windows-msvc","aarch64-pc-windows-msvc","x86_64-unknown-linux-gnu","x86_64-unknown-linux-musl","x86_64-unknown-freebsd","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","armv7-unknown-linux-gnueabihf","x86_64-apple-darwin","aarch64-apple-darwin","wasm32-wasip1-threads"]},"funding":{"url":"https://github.com/sponsors/Boshen"},"optionalDependencies":{"@oxc-resolver/binding-win32-x64-msvc":"5.0.1","@oxc-resolver/binding-win32-arm64-msvc":"5.0.1","@oxc-resolver/binding-linux-x64-gnu":"5.0.1","@oxc-resolver/binding-linux-x64-musl":"5.0.1","@oxc-resolver/binding-freebsd-x64":"5.0.1","@oxc-resolver/binding-linux-arm64-gnu":"5.0.1","@oxc-resolver/binding-linux-arm64-musl":"5.0.1","@oxc-resolver/binding-linux-arm-gnueabihf":"5.0.1","@oxc-resolver/binding-darwin-x64":"5.0.1","@oxc-resolver/binding-darwin-arm64":"5.0.1","@oxc-resolver/binding-wasm32-wasi":"5.0.1"},"_id":"oxc-resolver@5.0.1","gitHead":"386fdf9deafa68e9d7ffa5e9b8892917415f1ed7","types":"./index.d.ts","bugs":{"url":"https://github.com/oxc-project/oxc-resolver/issues"},"_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-BbclyCSxgnqO5mo05RGcwp8rkVdZL7sf0ugEnFWK67DIBAMq5wR0/GQlQCdPiPkpiv9GESAVX2cbh1DMFux/TQ==","shasum":"2d7d747e570f9957638d653a252a8bfb97bcebea","tarball":"http://registry-npm.ywwl.com/oxc-resolver/download/oxc-resolver-5.0.1.tgz","fileCount":5,"unpackedSize":20171,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oxc-resolver@5.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDNSi9qObJXyBLSy+0mJEWzeIftAVvJORc8vv8bCX0LVwIhALWd7rqUYEINzk73fFmAe0Cg2epA+EJWOsMZzlQ8lK3u"}],"size":5014,"noattachment":false,"key":"/oxc-resolver/-/oxc-resolver-5.0.1.tgz"},"_npmUser":{"name":"boshen","email":"boshenc@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/oxc-resolver_5.0.1_1742297350790_0.9595873104987893"},"_hasShrinkwrap":false,"readme":"# Oxc Resolver Napi Binding\n\nSee\n\n- `index.d.ts` for `resolveSync` and `ResolverFactory` API.\n- [README.md](https://github.com/oxc-project/oxc-resolver?tab=readme-ov-file#oxc-resolver) for options.\n\n## API\n\n`resolve(directory, specifier)` - resolve `specifier` at an absolute path to a `directory`.\n\n### `directory`\n\nAn **absolute** path to a directory where the specifier is resolved against.\n\nFor CommonJS modules, it is the `__dirname` variable that contains the absolute path to the folder containing current module.\n\nFor ECMAScript modules, it is the value of `import.meta.url`.\n\nBehavior is undefined when given a path to a file.\n\n### `specifier`\n\nThe string passed to `require` or `import`, i.e. `require(\"specifier\")` or `import \"specifier\"`\n\n## ESM Example\n\n```javascript\nimport assert from 'assert';\nimport path from 'path';\nimport resolve, { ResolverFactory } from './index.js';\n\n// `resolve`\nassert(resolve.sync(process.cwd(), './index.js').path, path.join(cwd, 'index.js'));\n\n// `ResolverFactory`\nconst resolver = new ResolverFactory();\nassert(resolver.sync(process.cwd(), './index.js').path, path.join(cwd, 'index.js'));\n```\n","publish_time":1742297350940,"maintainers":[{"name":"boshen","email":"boshenc@gmail.com"}],"_cnpm_publish_time":1742297350940,"dist-tags":{"latest":"11.24.2"}}