{"name":"rspack-resolver","version":"1.2.2","description":"Oxc Resolver Node API with PNP support","main":"index.js","browser":"browser.js","license":"MIT","homepage":"https://github.com/unrs/rspack-resolver","repository":{"type":"git","url":"git+https://github.com/unrs/rspack-resolver.git"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"napi":{"binaryName":"resolver","packageName":"@unrs/rspack-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/JounQin"},"optionalDependencies":{"@unrs/rspack-resolver-binding-win32-x64-msvc":"1.2.2","@unrs/rspack-resolver-binding-win32-arm64-msvc":"1.2.2","@unrs/rspack-resolver-binding-linux-x64-gnu":"1.2.2","@unrs/rspack-resolver-binding-linux-x64-musl":"1.2.2","@unrs/rspack-resolver-binding-freebsd-x64":"1.2.2","@unrs/rspack-resolver-binding-linux-arm64-gnu":"1.2.2","@unrs/rspack-resolver-binding-linux-arm64-musl":"1.2.2","@unrs/rspack-resolver-binding-linux-arm-gnueabihf":"1.2.2","@unrs/rspack-resolver-binding-darwin-x64":"1.2.2","@unrs/rspack-resolver-binding-darwin-arm64":"1.2.2","@unrs/rspack-resolver-binding-wasm32-wasi":"1.2.2"},"_id":"rspack-resolver@1.2.2","gitHead":"2d94750ddb8a7630d98dce3cb50df5941a704913","types":"./index.d.ts","bugs":{"url":"https://github.com/unrs/rspack-resolver/issues"},"_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Fwc19jMBA3g+fxDJH2B4WxwZjE0VaaOL7OX/A4Wn5Zv7bOD/vyPZhzXfaO73Xc2GAlfi96g5fGUa378WbIGfFw==","shasum":"f4f8f740246c59bc83525f830aca628b71843e8a","tarball":"http://registry-npm.ywwl.com/rspack-resolver/download/rspack-resolver-1.2.2.tgz","fileCount":5,"unpackedSize":20202,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/rspack-resolver@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDIF6HhihfS3tDtPgd4oASTQCSqi/lPITIXammh6hrDmAIgMriiqETKylUsWnUcwfk47lZ9PbPYETrDvzd31i/MqYU="}],"size":4966,"noattachment":false,"key":"/rspack-resolver/-/rspack-resolver-1.2.2.tgz"},"_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rspack-resolver_1.2.2_1742345482702_0.6417405919885657"},"_hasShrinkwrap":false,"readme":"# Rspack Resolver Napi Binding\n\nSee\n\n- `index.d.ts` for `resolveSync` and `ResolverFactory` API.\n- [README.md](https://github.com/unrs/rspack-resolver#rspack-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":1742345482886,"maintainers":[{"name":"jounqin","email":"admin@1stg.me"}],"deprecated":"Please migrate to the brand new `@rspack/resolver` or `unrs-resolver` instead","_cnpm_publish_time":1742345482886,"dist-tags":{"latest":"1.3.0"}}