How to use the change-case.title 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 plopjs / node-plop / src / baked-in-helpers.js View on Github external
import changeCase from 'change-case';

export default {
	camelCase: changeCase.camel,
	snakeCase: changeCase.snake,
	dotCase: changeCase.dot,
	pathCase: changeCase.path,
	lowerCase: changeCase.lower,
	upperCase: changeCase.upper,
	sentenceCase: changeCase.sentence,
	constantCase: changeCase.constant,
	titleCase: changeCase.title,

	dashCase: changeCase.param,
	kabobCase: changeCase.param,
	kebabCase: changeCase.param,

	properCase: changeCase.pascal,
	pascalCase: changeCase.pascal
};
github swisspush / apikana / src / plopfile_init.js View on Github external
function dotTitle(s) {
    return changeCase.title(s).replace(/ /g, '.');
}
github taskcluster / taskcluster / ui / src / components / Dashboard / index.jsx View on Github external
{docs ?  : }
        
        {deploymentVersion && (
          
            {deploymentVersion}
          
        )}
      
    );
    const isDocs = history.location.pathname.startsWith(DOCS_PATH_PREFIX);
    const isMobileView = width === 'sm' || width === 'xs';
    const pageTitle = disableTitleFormatting ? title : makeTitle(title);

    return (
      <div>
        
        {pageTitle}
        
          
            
            {(!isDocs || (isDocs &amp;&amp; isMobileView)) &amp;&amp; (
              </div>
github taskcluster / taskcluster / ui / src / components / TaskGroupProgress / index.jsx View on Github external
)}
              
              <div>
                
                  {showDots ? '...' : count}
                
                
                  {title(status)}
                
              </div>
            
          );
        })}
github swisspush / apikana / src / plopfile_init.js View on Github external
            default: answers => changeCase.title(answers.projectName).replace('Rest', 'REST').replace('Api', 'API')
        },{
github taskcluster / taskcluster / ui / src / components / Dashboard / index.jsx View on Github external
{docs ?  : }
        
        {deploymentVersion &amp;&amp; (
          
            {deploymentVersion}
          
        )}
      
    );
    const isDocs = history.location.pathname.startsWith(DOCS_PATH_PREFIX);
    const isMobileView = width === 'sm' || width === 'xs';
    const pageTitle = disableTitleFormatting ? title : makeTitle(title);

    return (
      <div>
        
        {pageTitle}
        {!disableAppbar &amp;&amp; (
          
            
              
                
                {(!isDocs || (isDocs &amp;&amp; isMobileView)) &amp;&amp; (
                  </div>
github taskcluster / taskcluster / src / components / TaskGroupProgress / index.jsx View on Github external
<div>
                
                  {showDots ? '...' : statusCount[lowerCase(status)]}
                
                
                  {title(status)}
                
              </div>
            
          );
        })}
github taskcluster / taskcluster / ui / src / components / TaskGroupProgress / index.jsx View on Github external
)}
              
              <div>
                
                  {showDots ? '...' : count}
                
                
                  {title(status)}
                
              </div>
            
          );
        })}