import * as dnit from "https://deno.land/x/dnit@dnit-v1.14.4/dnit/deps.ts";
Namespaces
Command line arguments parser based on minimist. | |
N fs | Helpers for working with the filesystem. |
N log | Logging library with the support for terminal and file outputs. Also provides interfaces for building custom loggers. |
N path | Utilities for working with OS-specific file paths. |
Classes
Error thrown in | |
Error thrown in | |
This is the default logger. It will output color coded log messages to the
console via | |
This handler will output to a file using an optional mode (default is | |
An object that encapsulates provided message and arguments as well some metadata that can be later used when formatting a message. | |
This handler extends the functionality of the | |
Variables
End-of-line character for Windows platforms. | |
End-of-line character evaluated for the current platform. | |
End-of-line character for POSIX platforms such as macOS and Linux. | |
Permitted log level names | |
Use this to retrieve the numeric log level by it's associated name. Defaults to INFO. | |
Functions
f file | Generate a trackedfile for tracking |
Take a set of command line arguments, optionally with a set of options, and return an object representing the flags found in the passed arguments. | |
Asynchronously copy a file or directory. The directory can have contents.
Like | |
Synchronously copy a file or directory. The directory can have contents.
Like | |
Returns the detected EOL character(s) detected in the input string. If no EOL
character is detected, | |
Asynchronously ensures that a directory is empty deletes the directory contents it is not empty. If the directory does not exist, it is created. The directory itself is not deleted. | |
Synchronously ensures that a directory is empty deletes the directory contents it is not empty. If the directory does not exist, it is created. The directory itself is not deleted. | |
Asynchronously ensures that the directory exists. If the directory structure
does not exist, it is created. Like | |
Synchronously ensures that the directory exists. If the directory structure
does not exist, it is created. Like | |
Asynchronously 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. | |
Synchronously 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. | |
Asynchronously ensures that the hard link exists. If the directory structure does not exist, it is created. | |
Synchronously ensures that the hard link exists. If the directory structure does not exist, it is created. | |
Asynchronously ensures that the link exists, and points to a valid file. If the directory structure does not exist, it is created. If the link already exists, it is not modified but error is thrown if it is not point to the given target. | |
Synchronously ensures that the link exists, and points to a valid file. If the directory structure does not exist, it is created. If the link already exists, it is not modified but error is thrown if it is not point to the given target. | |
Asynchronously test whether or not the given path exists by checking with the file system. | |
Synchronously test whether or not the given path exists by checking with the file system. | |
Returns an async iterator that yields each file path matching the given glob
pattern. The file paths are relative to the provided | |
Returns an iterator that yields each file path matching the given glob
pattern. The file paths are relative to the provided | |
Normalize the input string to the targeted EOL. | |
Asynchronously moves a file or directory. | |
Synchronously moves a file or directory. | |
Recursively walks through a directory and yields information about each file and directory encountered. | |
Same as | |
Log with critical level, using default logger. | |
Log with debug level, using default logger. | |
Log with error level, using default logger. | |
Returns the numeric log level associated with the passed, stringy log level name. | |
Returns the stringy log level name provided the numeric log level. | |
Get a logger instance. If not specified | |
Log with info level, using default logger. | |
Setup logger config. | |
Log with warning level, using default logger. | |
f main | |
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 | |
Coerces a string to semver if possible | |
Return true if version is greater than all the versions possible in the range. | |
Return the version incremented by the release type (major, minor, patch, or prerelease), or null if it's not valid. | |
Return true if any of the ranges comparators intersect | |
Return true if version is less than all the versions possible in the range. | |
Return the major version number. | |
Return the minor version number. | |
Return true if the version is outside the bounds of the range in either the high or low direction. The hilo argument must be either the string '>' or '<'. (This is the function called by gtr and ltr.) | |
Return the patch version number. | |
f task | Generate a task |
Interfaces
The options for the | |
Options for | |
Options for | |
Options for | |
Options for | |
Options for | |
Walk entry for | |
Options for | |
Options for | |
A parsed path object generated by path.parse() or consumed by path.format(). | |
Type Aliases
The value returned from | |
Union of valid log level names | |
Union of valid log levels | |