Abstract Abstract rootURI of the root package.
Abstract derefDereferences package entry.
Host package which entry to resolve.
Package or its entry import specifier.
Promise resolved to either module URI, or undefined if nothing to dereference.
Searches for package directory containing the given file or URI.
URI of the target file or directory.
Promise resolved to either enclosing package directory, or undefined if not found.
Abstract loadTries to load package info from the given directory.
By default, detects package info by the loaded package.json contents.
Source directory.
Promise resolved to either loaded package info contents, or undefined if directory does not contain
valid package.json file.
Abstract parentRecognizes import specifier and parses it accordingly.
In contrast to recognizeImport, this method may recognize imports specific to file system.
By default, calls recognizeImport function.
Import specifier to recognize. May be recognized already.
Recognized import specifier.
Abstract recognizeExtracts package URI from compatible URI import specifier.
Absolute URI import specifier.
Either package URI, or undefined if the URI can not be used to access packages.
Abstract resolveResolves a package by name against another one.
Note that returned URI is not necessary the one of package directory. Call findPackageDir in order to find one.
Package to resolve another one against.
Package name to resolve.
Promise resolved to either module URI, or undefined if the name can not be resolved.
Resolves path relatively to package.
By default, uses URI resolution.
The base to resolve the path against.
Path or URI to resolve.
URI of the resolved path.
Generated using TypeDoc
Virtual file system to work with packages.
File system deals with URIs rather with OS-dependent paths.
By default, a Node.js-specific file system implementation is used.