lib/traverse.js
function getKernelInfos(directory) {
  return promisify(fs.readdir, [directory]).then(files =>
    files.map(fileName => ({
      name: fileName,
      resourceDir: path.join(directory, fileName),
    }))
  );
}
function getKernelInfos(directory) {
  return promisify(fs.readdir, [directory]).then(files =>
    files.map(fileName => ({
      name: fileName,
      resourceDir: path.join(directory, fileName),
    }))
  );
}
function getKernelInfos ( directory ) { return promisify ( fs . readdir , [ directory ] ) . then ( files => files . map ( fileName => ( { name : fileName , resourceDir : path . join ( directory , fileName ) , } ) ) ) ; }
Gets a list of kernelInfo objects for a given directory of kernels
@param  {string}   directory path to a directory full of kernels
@return {Promise<Object[]>}  Promise for an array of kernelInfo objects
Gets a list of kernelInfo objects for a given directory of kernels