Function
mergeAn alias for this package's mergeArgs().
Inputs can be undefined, and if so, the default is returned.
Default object type.
Default values (if not specified in inputs).
Optional
inputs: undefinedOverriding values (changes to make).
Optional
recursive: booleanOptional. Whether to merge the object recursively. Default false.
Resulting object with all the defaults
and inputs
keys with
either default values or input values, as appropriate.
Passing recursive
as false means that the input type must be a Partial
(not RecursivePartial).
Optional
recursive: falsePassing recursive
as true means that the input type may actually be a
RecursivePartial.
Universal overload.
Optional
inputs: IOptional
recursive: booleanReadonly
ncThe instance of NodeConsole used within this class.
Default args for this stage.
Overrides the default function to return a string representation of this object.
Experimental
Copies a file to another path.
Location to write file.
Location to copy the source path to.
Optional configuration.
Path to file if written, or false on failure.
Deletes given files.
Paths to delete. Absolute or relative to root dir.
Base depth for console messages (via NodeConsole).
If true, files that would be deleted are printed to the console and not deleted.
Experimental
Read the paths within a directory.
Directory to read.
Optional configuration.
Paths within the given directory.
Reads a file.
File to read.
Optional configuration.
Contents of the file.
Writes a file.
Location to write file.
Contents to write.
Optional configuration.
Path to file if written, or false on failure.
Changes just the file name of a path
Full path with updated basename.
Returns relative paths, based on the root defined the the opts.
Path to make relative.
Resolves relative to the root defined the the opts.
Paths to resolve.
Returns a unique version of the inputPath (i.e., where no file exists) by appending a number.
Path to make unique.
Absolute, unique version of the given inputPath
.
NodeFiles.changeBaseName Used to update the basename to test for uniqueness.
A configurable class for working with files and paths in node.
Since
0.2.0