import * as macromaniaAssets from "https://deno.land/x/macromania_assets@v0.2.0/deps.ts";
Namespaces
N path | Utilities for working with OS-specific file paths. |
Utilities for working with OS-specific file paths. |
Functions
Create an absolute path in the OutFs. | |
f Cd | Change the current out directory for the children of this macro. |
Changes the permission of a specific file/directory of specified path. Ignores the process's umask. | |
Changes the permission of a specific file/directory of specified path. Ignores the process's umask. | |
Changes the owner of a regular file or directory. | |
Changes the owner of a regular file or directory. | |
Clone an | |
f copy | Copies a file or directory. The directory can have contents. Like |
f Copy | Copies a file or directory. The directory can have contents. Like |
Copies the contents and permissions of one file to another specified path, by default creating a new file if needed, else overwriting. Fails if target path is a directory or is unwritable. | |
Copies the contents and permissions of one file to another specified path, by default creating a new file if needed, else overwriting. Fails if target path is a directory or is unwritable. | |
Create a new logger. It can be configured independently from all other loggers. | |
Return | |
f Dir | Create a directory in the current out directory, and |
Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. | |
Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. | |
Ensures that the directory exists. If the directory structure does not
exist, it is created. Like | |
Ensures that the directory exists. If the directory structure does not
exist, it is created. Like | |
Ensures that the file exists. If the file that is requested to be created is in directories that do not exist, these directories are created. If the file already exists, it is NOT MODIFIED. | |
Ensures that the file exists. If the file that is requested to be created is in directories that do not exist, these directories are created. If the file already exists, it is NOT MODIFIED. | |
Ensures that the hard link exists. If the directory structure does not exist, it is created. | |
Ensures that the hard link exists. If the directory structure does not exist, it is created. | |
Ensures that the file does not exist. | |
Ensures that the file does not exist. | |
Ensures that the symlink exists. If the directory structure does not exist, it is created. | |
Ensures that the symlink exists. If the directory structure does not exist, it is created. | |
Take the output of a jsx transform and turn it into an array of
| |
f File | Create a file in current out directory, write the evaluated children there. |
f link | Creates |
f Link | Creates |
Creates a new temporary directory in the default directory for
temporary files, unless | |
Creates a new temporary directory in the default directory for
temporary files, unless | |
Creates a new temporary file in the default directory for
temporary files, unless | |
Creates a new temporary file in the default directory for
temporary files, unless | |
Creates a new directory with the specified path. | |
Creates a new directory with the specified path. | |
Get the current out directory as an | |
Get the name of the current file, or | |
Get the mount point of the OutFs as a platform-dependent absolute path. | |
Return the last portion of a | |
Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator. | |
Return the directory path of a | |
Return the extension of the | |
Generate a path from | |
Converts a file URL to a path string. | |
Convert a glob string to a regular expression. | |
Verifies whether provided path is absolute | |
Test whether the given string is a glob | |
Join all given a sequence of | |
Like join(), but doesn't collapse "**/.." when | |
Normalize the | |
Like normalize(), but doesn't collapse "**/.." when | |
Return a | |
Return the relative path from | |
Resolves path segments into a | |
Converts a path string to a file URL. | |
Resolves path to a namespace path | |
Return the last portion of a | |
Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator. | |
Return the directory path of a | |
Return the extension of the | |
Generate a path from | |
Converts a file URL to a path string. | |
Convert a glob string to a regular expression. | |
Verifies whether provided path is absolute | |
Test whether the given string is a glob | |
Join all given a sequence of | |
Like join(), but doesn't collapse "**/.." when | |
Normalize the | |
Like normalize(), but doesn't collapse "**/.." when | |
Return a | |
Return the relative path from | |
Resolves path segments into a | |
Converts a path string to a file URL. | |
Resolves path to a namespace path | |
Returns the full path destination of the named symbolic link. | |
Returns the full path destination of the named symbolic link. | |
Reads and returns the entire contents of a file as an UTF-8 decoded string. Reading a directory throws an error. | |
Reads and returns the entire contents of a file as an UTF-8 decoded string. Reading a directory throws an error. | |
Returns the absolute normalized path, with symbolic links resolved. | |
Returns the absolute normalized path, with symbolic links resolved. | |
Create a relative path in the OutFs. The optional second argument is the
number of | |
Removes the named file or directory. | |
Removes the named file or directory. | |
Renames (moves) | |
Renames (moves) | |
Renders an | |
Style | |
Style a filename for terminal output. | |
Like | |
Creates | |
Creates | |
Truncates (or extends) the specified file, to reach the specified | |
Truncates (or extends) the specified file, to reach the specified | |
Changes the access ( | |
Changes the access ( | |
Write the content string to the given | |
Write the expanded child to the given |
Interfaces
Debugging information that can be attached to | |
The (deliberately simple) interface we require for the logging backend. | |
Options for | |
A parsed path object generated by path.parse() or consumed by path.format(). | |
Options for | |
A parsed path object generated by path.parse() or consumed by path.format(). |
Type Aliases
An expression, to be evaluated to a string. | |
Utility type for macros that accept an arbitrary number of children.
Use with | |
A logger, as created by the | |
The configuration options for an individual logger. | |
T Mode | Describes what to do if there is already a file of some name.
|
A path in the OutFS. | |
Shared state during an evaluation that can be freely used by macros. |