CIA Compliance Manager API Documentation - v1.1.6
    Preparing search index...

    Variable toTitleCase

    toTitleCase: (str: string) => string

    Type Declaration

      • (str: string): string
      • Converts a string to title case

        Transforms strings by capitalizing the first letter of each word and lowercasing the rest. Useful for formatting security level names, component labels, and user-facing text.

        Parameters

        • str: string

          The string to convert to title case

        Returns string

        The title-cased string

        toTitleCase('hello world')           // 'Hello World'
        toTitleCase('SECURITY LEVEL') // 'Security Level'
        toTitleCase('confidentiality') // 'Confidentiality'
        toTitleCase('risk-based approach') // 'Risk-Based Approach'
        toTitleCase('multi-factor authentication') // 'Multi-Factor Authentication'

        // Usage in display
        const displayName = toTitleCase(component);
        <h2>{displayName} Analysis</h2>