lib/utils.js
function trimExtension(filePath) {
  const ext = path.extname(filePath);
  return filePath.slice(0, filePath.length - ext.length);
}
function trimExtension(filePath) {
  const ext = path.extname(filePath);
  return filePath.slice(0, filePath.length - ext.length);
}
function trimExtension ( filePath ) { const ext = path . extname ( filePath ) ; return filePath . slice ( 0 , filePath . length - ext . length ) ; }
Remove the extension.
Remove the extension .