{"name":"rspack-resolver","version":"1.1.2","license":"MIT","_id":"rspack-resolver@1.1.2","homepage":"https://github.com/unrs/rspack-resolver","bugs":{"url":"https://github.com/unrs/rspack-resolver/issues"},"dist":{"shasum":"33b91858f7ae962d086ab00cbf66b8a4b8e9b570","tarball":"http://registry-npm.ywwl.com/rspack-resolver/download/rspack-resolver-1.1.2.tgz","fileCount":5,"integrity":"sha512-eHhz+9JWHFdbl/CVVqEP6kviLFZqw1s0MWxLdsGMtUKUspSO3SERptPohmrUIC9jT1bGV9Bd3+r8AmWbdfNAzQ==","signatures":[{"sig":"MEUCIQDHi/O2qi0u8DFKvoPSqyV/ORsdiHugtz3yHzHBuxaIcQIgDzSjiSJmETZwpdv09z+u/CDh7x8PV+WexXs8cLX3OlE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/rspack-resolver@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":20175,"size":4964,"noattachment":false,"key":"/rspack-resolver/-/rspack-resolver-1.1.2.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":"@unrs/rspack-resolver-binding"},"types":"./index.d.ts","browser":"browser.js","funding":{"url":"https://github.com/sponsors/JounQin"},"gitHead":"dc80382089e8a9232ff068621f276f4fa7baba40","_npmUser":{"name":"jounqin","email":"admin@1stg.me"},"repository":{"url":"git+https://github.com/unrs/rspack-resolver.git","type":"git"},"_npmVersion":"10.8.2","description":"Oxc Resolver Node API with PNP support","directories":{},"_nodeVersion":"20.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"optionalDependencies":{"@unrs/rspack-resolver-binding-darwin-x64":"1.1.2","@unrs/rspack-resolver-binding-freebsd-x64":"1.1.2","@unrs/rspack-resolver-binding-wasm32-wasi":"1.1.2","@unrs/rspack-resolver-binding-darwin-arm64":"1.1.2","@unrs/rspack-resolver-binding-linux-x64-gnu":"1.1.2","@unrs/rspack-resolver-binding-linux-x64-musl":"1.1.2","@unrs/rspack-resolver-binding-win32-x64-msvc":"1.1.2","@unrs/rspack-resolver-binding-linux-arm64-gnu":"1.1.2","@unrs/rspack-resolver-binding-linux-arm64-musl":"1.1.2","@unrs/rspack-resolver-binding-win32-arm64-msvc":"1.1.2","@unrs/rspack-resolver-binding-linux-arm-gnueabihf":"1.1.2"},"_npmOperationalInternal":{"tmp":"tmp/rspack-resolver_1.1.2_1742161409901_0.23493862052084458","host":"s3://npm-registry-packages-npm-production"},"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":1742161410103,"maintainers":[{"name":"jounqin","email":"admin@1stg.me"}],"deprecated":"Please migrate to the brand new `@rspack/resolver` or `unrs-resolver` instead","_cnpm_publish_time":1742161410103,"dist-tags":{"latest":"1.3.0"}}