PathResolver
Index
Constructors
constructor
Methods
getLookupPaths
lookupFilePath
Add a file system path to look for, resolved against the defined current working directory (or
process.cwd()
otherwise).
lookupFilePathWithExts
Add a file system path with a list of possible extensions to look for, resolved against the defined current working directory (or
process.cwd()
otherwise).
lookupNodeModule
Add a Node.js module, either by name or relative path, to look for.
resolve
Given a list of lookups, attempt to find the first real/existing path and return a resolved absolute path. If a file system path, will check using
fs.exists
. If a node module path, will check using the provided resolver.
resolvePath
Like
resolve()
but only returns the resolved file path.
Return a list of all lookup paths.