Convert a string to Pascal case (opens in a new tab).
Syntax
import { pascalCase } from '@opentf/std';
pascalCase(str: string): string;
Examples
pascalCase() // It throws an error;
pascalCase('na cl'); // 'NaCl'
pascalCase('Foo-Bar'); // 'FooBar'
pascalCase('fooBAR'); // 'FooBar'
pascalCase('react_component'); // 'ReactComponent'
pascalCase('--foo.bar'); // 'FooBar'
pascalCase('__foo__--bar'); // 'FooBar'
pascalCase('cinema Scope'); // 'CinemaScope'