docs: function getFileJSON(rootFolder, file, fileName, extension, id) {
      return new Promise((resolve, reject) => {
          fs.stat(path.join(rootFolder, file), (err, stats) => {
              if (err) {
                  reject();
                  return;
              }
              if (stats.isFile()) {
                  // Read local javascript file
                  fs.readFile(path.join(rootFolder, file), 'utf8', (err, source) => {
                      if (err) {
                          reject(err);
                          return;
                      }
  
                      const type = eaft.getFiletypeFromExtension(extension);
                      const fileJSON = {
                          name: fileName,
                          type,
                          source,
                          id,
                      };
  
                      resolve(fileJSON);
                      return;
                  });
              } else {
                  reject();
                  return;
              }
          });
      });
  }