Abstractspecify a cwd to use instead of the real cwd. Useful for tests and web environments where process.cwd is undefined
Optionalcwd: stringAbstractexistsWhether or not a file path exists in the container.
File path to test
true if the path exists
Searches for a metadata component file in a container directory.
The type of component file
The name of the file without a suffix
The directory to search in
The first path that meets the criteria, or undefined if none were found
AbstractisWhether or not a file path is a directory in the container.
File path to test
true if the path is to a directory
AbstractreadReads the contents of a directory in the container.
Path to directory
An array of file and directory names in the directory
AbstractreadReads the contents of a file.
A buffer of the file contents
AbstractreadReads the contents of a file synchronously.
A buffer of the file contents
AbstractstreamCreates a readable stream of a file's contents.
File path to create a readable stream from
A readable stream
A container for interacting with a file system. Operations such as component resolution, conversion, and packaging perform I/O against
TreeContainerabstractions.Extend this base class to implement a custom container.