Methods
-
<inner> parseGlob( data ) → {Promise.<Array.<string>>}
-
Description
Parsing the glob and returns selected files
Parameters
Name Type Description data
string glob string for log files
Returns
Details
-
<inner> mergeFiles( inputPathList, outputPath ) → {Promise}
-
Description
Merge multiple files to one file
Parameters
Name Type Description inputPathList
Array.<string> list of files
outputPath
string file path where the merged file will be saved
Returns
Details
-
<inner> createTmpFolder() → {Promise.<string>}
-
Description
Creates a temporary folder
Returns
Details
-
<inner> openShell( [ openNew ], filePath [, param ] ) → {Promise}
-
Description
Open json-log-viewer
Parameters
Name Type Attributes Description openNew
boolean <optional> if true open json-log-viewer in a new console
filePath
string path to log file
param
string <optional> json-log-viewer parameter
Returns
Details
-
<inner> copyFile( src, dist ) → {Promise}
-
Description
Copy a file to a new location
Parameters
Name Type Description src
string path to file
dist
string path where to save the file
Returns
Details
-
<inner> deleteFile( src ) → {Promise}
-
Description
Delete a file
Parameters
Name Type Description src
string path to file
Returns
Details
-
<inner> existFile( src ) → {Promise.<boolean>}
-
Description
Check if file exist
Parameters
Name Type Description src
string path to file
Returns
Details