@terminus/ngx-tools
Version:
[![CircleCI][circle-badge]][circle-link] [![codecov][codecov-badge]][codecov-project] [![semantic-release][semantic-release-badge]][semantic-release] [![MIT License][license-image]][license-url] <br> [![NPM version][npm-version-image]][npm-url] [![Github
13 lines (12 loc) • 441 B
TypeScript
/**
* Convert a string to camelCase
*
* @param input - The string to convert
* @param pascalCase - A boolean representing if the string should be converted to PascalCase
* @returns The camelCase version of the string
*
* @example
* toCamelCase('MY_TEXT') // Returns: `myText`
* toCamelCase('MY_TEXT', true) // Returns: `MyText`
*/
export declare function toCamelCase(input: string, pascalCase?: boolean): string | undefined;