{"name":"oxc-resolver","version":"4.2.0","license":"MIT","_id":"oxc-resolver@4.2.0","homepage":"https://oxc.rs","bugs":{"url":"https://github.com/oxc-project/oxc-resolver/issues"},"dist":{"shasum":"ea3a75d5f95dd2025deff5db6167109b09462555","tarball":"http://registry-npm.ywwl.com/oxc-resolver/download/oxc-resolver-4.2.0.tgz","fileCount":5,"integrity":"sha512-x9bzmn1rQRu2cRT6dC6qOCKyStDVubXsf5H3UloUG/UFjzufmNu8DHTxafYDaSlA9Y+rorD+EnmF7sWSaFdd7g==","signatures":[{"sig":"MEQCIE9NHegeTeJUbYCcvwzAVXNllghU0vjijCnzcclQ82LNAiBtu8gTAFL3CV/ypqgda+iCv4PqmSPMqP/Z2C3aI/991A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oxc-resolver@4.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":19979,"size":4970,"noattachment":false,"key":"/oxc-resolver/-/oxc-resolver-4.2.0.tgz"},"main":"index.js","napi":{"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"],"binaryName":"resolver","packageName":"@oxc-resolver/binding"},"types":"./index.d.ts","browser":"browser.js","funding":{"url":"https://github.com/sponsors/Boshen"},"gitHead":"4ff74cc28d0b4c738d9aecfe634b601e83dee06b","_npmUser":{"name":"boshen","email":"boshenc@gmail.com"},"repository":{"url":"git+https://github.com/oxc-project/oxc-resolver.git","type":"git"},"_npmVersion":"10.9.2","description":"Oxc Resolver Node API","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"optionalDependencies":{"@oxc-resolver/binding-darwin-x64":"4.2.0","@oxc-resolver/binding-freebsd-x64":"4.2.0","@oxc-resolver/binding-wasm32-wasi":"4.2.0","@oxc-resolver/binding-darwin-arm64":"4.2.0","@oxc-resolver/binding-linux-x64-gnu":"4.2.0","@oxc-resolver/binding-linux-x64-musl":"4.2.0","@oxc-resolver/binding-win32-x64-msvc":"4.2.0","@oxc-resolver/binding-linux-arm64-gnu":"4.2.0","@oxc-resolver/binding-linux-arm64-musl":"4.2.0","@oxc-resolver/binding-win32-arm64-msvc":"4.2.0","@oxc-resolver/binding-linux-arm-gnueabihf":"4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/oxc-resolver_4.2.0_1739943164317_0.20565088133297293","host":"s3://npm-registry-packages-npm-production"},"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":1739943164508,"maintainers":[{"name":"boshen","email":"boshenc@gmail.com"}],"_cnpm_publish_time":1739943164508,"dist-tags":{"latest":"11.24.2"}}