BLUE
PHP 7.4.33
Path:
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/unrs-resolver
Run
Logout
Edit File
Size: 1.09 KB
Close
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/unrs-resolver/README.md
Text
Base64
# UnRS Resolver Napi Binding See - `index.d.ts` for `resolveSync` and `ResolverFactory` API. - [README.md](https://github.com/unrs/unrs-resolver#unrs-resolver) for options. ## API `resolve(directory, specifier)` - resolve `specifier` at an absolute path to a `directory`. ### `directory` An **absolute** path to a directory where the specifier is resolved against. For CommonJS modules, it is the `__dirname` variable that contains the absolute path to the folder containing current module. For ECMAScript modules, it is the value of `import.meta.url`. Behavior is undefined when given a path to a file. ### `specifier` The string passed to `require` or `import`, i.e. `require("specifier")` or `import "specifier"` ## ESM Example ```javascript import assert from 'assert'; import path from 'path'; import resolve, { ResolverFactory } from './index.js'; // `resolve` assert(resolve.sync(process.cwd(), './index.js').path, path.join(cwd, 'index.js')); // `ResolverFactory` const resolver = new ResolverFactory(); assert(resolver.sync(process.cwd(), './index.js').path, path.join(cwd, 'index.js')); ```
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
browser.js
51 B
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.d.ts
7.30 KB
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
9.34 KB
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
2.05 KB
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
1.09 KB
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).