Get the charset of this resource.
Get the content-type header of this resource.
Get the extension of the resource referred to by this instance.
Returns true if this resource refers to a file on the local filesystem.
Returns true if this resource refers to a file on a remote filesystem.
Get the mime-type of this resource.
Get the string of this resource.
Get the URLSearchParams for this resource.
Get the basename of the path.
Get the path to this resource as it would be accessed from the current filesystem.
Get the fully-prefixed path to this resource.
Get the non-prefixed path to this resource.
Append the given path-like item to this resource's path.
Unlike concat
, this mutates the current instance.
Return a new copy of this UniversalPath instance.
Append and resolve the given paths to this resource and return a new UniversalPath.
Returns true if the given resource exists at the path.
Returns true if the given path refers to the same resource as this path.
Returns true if this path exists in the subtree of the given path.
Resolves true if this resource is a directory.
Resolves true if this resource is a regular file.
Returns true if the given path exists in the subtree of this path.
List any immediate children of this resource.
Recursively create this path as a directory. Equivalent to mkdir -p
on Linux.
Read the data from this resource's file as a string.
Get a readable stream of this file's contents.
Determine the "localized" string of this path.
This is the normalized path WITHOUT the prefix.
Determine the correct prefix for this path.
Get the size of this resource, formatted in a human-readable string.
Get the size of this resource in bytes.
Get a new Pipe instance wrapping this.
Cast the path to a string (fully-prefixed).
Recursively walk all files in this directory. Must be a local resource.
This returns an async generator function.
Write the given data to this resource as a file.
Get a writable stream to this file's contents.
extollo (v. latin) - to lift up, to elevate
Extollo is a free & libre application framework in TypeScript.
Class representing some kind of filesystem resource.