string path of destination file to append to.
Finally returns a void Promise if successful after writing data to a file at
filePath, else rejects.
string data to append.
A side-effectful file operation that returns a void Promise if
successful after creating a previously non-existant directory at filePath, else rejects.
string path of directory to create.
A void Promise if successful after creating a previously non-existant directory at
filePath, else rejects.
A side-effectful file operation that returns a void Promise if
successful after deleting a file at filePath, else rejects.
string path of file to delete.
A void Promise if
successful after deleting a file at filePath, else rejects
Finally returns a Promise fulfilling to a string array of names for all files with
a type matching entryType in an existing directory at filePath, else rejects.
DirEntryType indicating the the entry type (e.g., directory, file , etc.) of
names that should be returned (optional, defaults to DirEntryType.all).
Finally returns a Promise fulfilling to a string array of names for all files with
a type matching entryType in the existing directory at filePath, else rejects.
string path of directory test.
File-specific alternative to dirAllNames (which returns file and directory names). I.e.,
returns a Promise fulfilling to a string array of names for
all non-directory files in the existing directory at filePath, else rejects.
string path of directory test.
a Promise fulfilling to a string array of names for all files in the
existing directory at filePath, else rejects.
Directory-specific alternative to dirAllNames (which returns file and directory names). I.e.,
returns a Promise fulfilling to a string array of names for
all directory files in the existing directory at filePath, else rejects.
string path of directory test.
a Promise fulfilling to a string array of names for all files in the
existing directory at filePath, else rejects.
A potentially side-effectful file operation that serves as a convenient alternative to
createDir to handle potentially pre-existing directories by leaving the existing directory &
its content unchanged. I.e., finally returns a void Promise if successful after creating a
directory at filePath (or performs no operation if the directory already exists), else rejects.
string path of directory to create.
Finally returns a void Promise if successful after creating a directory at
filePath, else rejects.
A directory-specific alternative to pathExists (which returns true for existing file and
directory paths). I.e., Returns a Promise fulfilling to true if a directory file exists at
filePath, else fulfills to false.
string path of file test.
A Promise fulfilling to true if a directory file exists at
filePath, else fulfills to false.
A file-specific alternative to pathExists (which returns true for existing file and
directory paths). I.e., Returns a Promise fulfilling to true if a
non-directory file exists at filePath, else fulfills to false.
string path of file test.
A Promise resolving to true if a non-directory file exists at
filePath.
Returns the directory name of filePath if found, else returns undefined.
string path of file to test (optional, defaults to '').
Returns the directory name of filePath if found, else returns undefined.
Returns a Promise-contained true if a file or directory at filePath exists,
else returns false.
string path of file to test.
Promise-contained true if a file at filePath exists, else returns false.
Returns Promise-contained string content if a file at filePath exists, else rejects.
string path of file to read.
Promise-contained string content a file at filePath exists, else rejects.
Convenience function similar to readFile but focuses on reading JSON file content before
returning Promise-contained object if a JSON file at filePath exists, else rejects.
string path of JSON file to read.
Promise-contained string content a file at filePath exists, else rejects.
A side-effectful file operation that finally returns a void Promise if
successful after writing (i.e., overwrites all existing file data) data to a file at
filePath (i.e., creates the file if it doesn't already exist prior to writing), else rejects.
string path of destination file to write to.
Finally returns a void Promise if successful after writing data to a file at
filePath, else rejects.
string data to write.
A side-effectful convenience function similar to writeFile but focuses on writing a data object to a
JSON file at filePath before returning a void Promise if successful, else rejects.
string path of JSON file to write.
Finally returns a void Promise if successful after writing data to a file at
filePath, else rejects.
object to write.
Finally returns a string containing filePath and all names delimited by the
platform-specific path separator (\\ on Windows or / on Unix).
string path of file to join onto (optional, defaults to '').
Finally returns a string containing filePath and all names delimited by the
platform-specific path separator.
string array of names to join.
A side-effectful file operation that serves as a less destructive alternative to
writeFile. I.e., Appends (rather than overwriting)datato existing data of a file atfilePath(i.e., creates the file if it doesn't already exist) to finally return avoidPromiseif successful, else rejects.node
0.1.0
readFile writeFile