Methods
-
<async, static> fetch( srcPath, settings ) → {Promise.<{files: Array.<string>, directories: Array.<string>}>}
-
Description
Fetch a path for its content and return a Promise which will success with a full list of filesParameters
Name Type Description srcPathstring target path settingsObject fetch settings Name Type Attributes Default Description excludeHiddenboolean <optional> true Determinates if hidden files should be excluded or included in the process excludeSymLinksboolean <optional> true Determinates if symbolic links should be excluded or included in the process Returns
Requires
Details
-
<static> multiCaseReplacer( targetString, replacingString ) → {function}
-
Description
Generate a custom function wich replace text with the given parametersParameters
Name Type Description targetStringstring target string to replace with replacingString replacingStringstring string to replace with Returns
Requires
Details
-
<static> fetch( targetPath ) → {string}
-
Description
Path ending partParameters
Name Type Description targetPathstring target path Returns
Requires
Details
-
<async, static> mkDirRecursive( [ cwd ], relativePath ) → {Promise.<void>}
-
Description
Recursive mkDir creating each dir of the provided pathParameters
Name Type Attributes Default Description cwdstring <optional> process.cwd() current working dir relativePathstring target relative path Returns
Requires
Details
-
<async, static> copy( srcPath, destPath [, settings ] ) → {Promise.<{files: Array.<string>, directories: Array.<string>}>}
-
Description
Perform a copy of the source path over the destination path replacing the gin string with the replacing string over file names and contentsParameters
Name Type Attributes Default Description srcPathstring Source path to copy from destPathstring Destination path to copy to settingsObject <optional> {targetString, replacingString, cwd} Additional copy settings Name Type Attributes Default Description targetStringstring <optional> pathFinalDir(srcPath) Target/Source string to replace with replacingString on the copy replacingStringstring <optional> pathFinalDir(destPath) Replacing/Destination string encodingstring <optional> 'utf8' Encoding to use for read/write cwdstring <optional> process.cwd() Current working directory Returns
Requires
Details