code: function constructDestwCallBack(absSrcFile, callback) {
      var projectDir = path.resolve(__dirname, "../../../");
      var srcFile = path.basename(absSrcFile);
      var destinationFile = callback(projectDir, srcFile, absSrcFile);
      errorCheckPath(destinationFile);
  
      if (fs.existsSync(destinationFile)) {
          return destinationFile;
      } else {
          var directoryMissing = checkMissingDir(destinationFile);
          if (directoryMissing) {
            consoleWarn(directoryMissing);
          }
          return false;
      }
  }
docs: main code