src/utils.js
function inferRAMLTypeName (fileName) {
  const cleanName = fileName.replace(/^.*[\\/]/, '')
  const filename = cleanName.split('.')[0]
  return capitalize(filename)
}
function inferRAMLTypeName (fileName) {
  const cleanName = fileName.replace(/^.*[\\/]/, '')
  const filename = cleanName.split('.')[0]
  return capitalize(filename)
}
function inferRAMLTypeName ( fileName ) { const cleanName = fileName . replace ( / ^.*[\\/] / , '' ) const filename = cleanName . split ( '.' ) [ 0 ] return capitalize ( filename ) }
Infer RAML type name from file name

@param  {string} fileName - File in which type is located.
@returns  {string}
Infer RAML type name from file name