import _ from "lodash" ; /**
 * Stores a name with common transformations cached for use in templates and file paths.
 */ export class Name { original = "" ; kebabCase = "" ; lowerCamelCase = "" ; snakeCase = "" ; upperCamelCase = "" ; constructor ( name ) { if ( name ) { this . original = name ; this . kebabCase = _ . kebabCase ( name ) ; this . lowerCamelCase = _ . camelCase ( name ) ; this . snakeCase = _ . snakeCase ( name ) ; this . upperCamelCase = _ . upperFirst ( _ . camelCase ( name ) ) ; } Object . freeze ( this ) ; } toString ( ) { return this . original ; } }