{"name":"rspack-resolver","version":"1.1.1","license":"MIT","_id":"rspack-resolver@1.1.1","homepage":"https://github.com/unrs/rspack-resolver","bugs":{"url":"https://github.com/unrs/rspack-resolver/issues"},"dist":{"shasum":"daad68f9cbcc5f579fcba4449c9f138c9c0a081c","tarball":"http://registry-npm.ywwl.com/rspack-resolver/download/rspack-resolver-1.1.1.tgz","fileCount":5,"integrity":"sha512-SwTjuIOS9jIYViQpYiDOmLTf/nuP6j9fz9VSxdNyIFiFaivEt6TOO5z0qQAwVloTz8RqjbPAzhVr1isiyHNRHw==","signatures":[{"sig":"MEYCIQCj1r6wQY9KrbRKNpFn6xVb69nkx9IQ+tZHdNGwjTATOgIhAOd/j6L0p3fRKqKOUR+0LwnUO+avIZYfSnK6EfadcgHZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/rspack-resolver@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":20175,"size":4964,"noattachment":false,"key":"/rspack-resolver/-/rspack-resolver-1.1.1.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":"af19927efc56b9353be431f1ff3c7fa618c5701e","_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.1","@unrs/rspack-resolver-binding-freebsd-x64":"1.1.1","@unrs/rspack-resolver-binding-wasm32-wasi":"1.1.1","@unrs/rspack-resolver-binding-darwin-arm64":"1.1.1","@unrs/rspack-resolver-binding-linux-x64-gnu":"1.1.1","@unrs/rspack-resolver-binding-linux-x64-musl":"1.1.1","@unrs/rspack-resolver-binding-win32-x64-msvc":"1.1.1","@unrs/rspack-resolver-binding-linux-arm64-gnu":"1.1.1","@unrs/rspack-resolver-binding-linux-arm64-musl":"1.1.1","@unrs/rspack-resolver-binding-win32-arm64-msvc":"1.1.1","@unrs/rspack-resolver-binding-linux-arm-gnueabihf":"1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/rspack-resolver_1.1.1_1742136478459_0.37658260435030644","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":1742136478669,"maintainers":[{"name":"jounqin","email":"admin@1stg.me"}],"deprecated":"Please migrate to the brand new `@rspack/resolver` or `unrs-resolver` instead","_cnpm_publish_time":1742136478669,"dist-tags":{"latest":"1.3.0"}}