How to use the change-case.capitalCase function in change-case

To help you get started, we’ve selected a few change-case examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CityOfBoston / boston.gov-d8 / docroot / modules / custom / bos_components / modules / bos_web_app / apps / metrolist / src / components / FiltersPanel / index.js View on Github external
.map( ( cardinalDirection ) => {
                      const count = listingCounts.location.cardinalDirection[cardinalDirection];
                      return (
                        { `${capitalCase( cardinalDirection )} of Boston (${count || '0'})` }
                      );
                    } )
                }
github hashicorp / boundary / website / components / openapi-page / utils / routing-utils.js View on Github external
.map((serviceId) => {
          const name = capitalCase(serviceId)
          const slug = getServiceSlug(serviceId)
          const operations = operationObjects.filter(
            (o) => getServiceId(o.operationId) === serviceId
          )
          return { name, slug, operations }
        })[0]
github CityOfBoston / boston.gov-d8 / docroot / modules / custom / bos_components / modules / bos_web_app / apps / metrolist / src / components / AmiEstimator / index.js View on Github external
const getNextStepName = () => {
    const nextStep = ( step + 1 );
    const stepDefinition = props.steps[nextStep - 1];

    if ( stepDefinition ) {
      return capitalCase( stepDefinition.component.displayName );
    }

    return null;
  };
github hashicorp / boundary / website / components / openapi-page / utils / routing-utils.js View on Github external
function getServiceSlug(serviceId) {
  return slugify(capitalCase(serviceId))
}
github hashicorp / boundary / website / components / openapi-page / utils / routing-utils.js View on Github external
const order = serviceIds.map((serviceId) => {
    return {
      title: capitalCase(serviceId),
      indexData: true,
      path: getServiceSlug(serviceId),
    }
  })
  return order
github CityOfBoston / boston.gov-d8 / docroot / modules / custom / bos_components / modules / bos_web_app / apps / metrolist / src / components / Home / methods.js View on Github external
switch ( type ) {
    case 'apt':
      return 'Apartment';

    case 'sro':
      return 'Single Room Occupancy';

    case 'condo':
      return 'Condominium';

    case 'multi-family':
      return 'Multi-family';

    default:
      return capitalCase( type );
  }
}
github CityOfBoston / boston.gov-d8 / docroot / modules / custom / bos_components / modules / bos_web_app / apps / metrolist / src / components / FiltersPanel / index.js View on Github external
.map( ( neighborhood ) => {
                      const count = listingCounts.location.neighborhood[neighborhood];
                      return (
                        { `${capitalCase( neighborhood )} (${count || '0'})` }
                      );
                    } )
                }