packages/material-ui-icons/builder.js
function getComponentName(destPath) {
  const splitregex = new RegExp(`[\\${path.sep}-]+`);

  const parts = destPath
    .replace('.js', '')
    .split(splitregex)
    .map(part => part.charAt(0).toUpperCase() + part.substring(1));

  return parts.join('');
}
function getComponentName(destPath) {
  const splitregex = new RegExp(`[\\${path.sep}-]+`);

  const parts = destPath
    .replace('.js', '')
    .split(splitregex)
    .map(part => part.charAt(0).toUpperCase() + part.substring(1));

  return parts.join('');
}
function getComponentName ( destPath ) { const splitregex = new RegExp ( ` \\ ${ path . sep } ` ) ; const parts = destPath . replace ( '.js' , '' ) . split ( splitregex ) . map ( part => part . charAt ( 0 ) . toUpperCase ( ) + part . substring ( 1 ) ) ; return parts . join ( '' ) ; }
Return Pascal-Cased component name.

@param {string} destPath
@returns {string} class name
Return Pascal - Cased component name .