import { capitalizeFirstLetter , toCamelCase } from '.' ; param { String } name returns { String } example export function toPortName ( name ) { const portName = capitalizeFirstLetter ( toCamelCase ( name , '-' ) ) ; const sanitizedPortName = portName . replace ( /\W/g , '' ) ; return sanitizedPortName ; }