@povio/openapi-codegen-cli
Version:
**NOTE:** This CLI tool is primarily designed for use within our organization. The generated code output aligns with our internal template. If you are using this tool without our internal template, make sure to use it in **standalone** mode.
15 lines (14 loc) • 1.05 kB
TypeScript
export declare const capitalize: (str: string) => string;
export declare const decapitalize: (str: string) => string;
export declare const kebabToCamel: (str: string) => string;
export declare const snakeToCamel: (str: string) => string;
export declare const nonWordCharactersToCamel: (str: string) => string;
export declare const suffixIfNeeded: (text: string, suffix?: string) => string;
export declare const removeSuffix: (text: string, suffix: string) => string;
export declare const getLongestMostCommon: (strs: string[]) => string | undefined;
export declare const getMostCommonAdjacentCombinationSplit: (strs: string[]) => string | undefined;
export declare const splitByUppercase: (str: string) => string[];
export declare const camelToSpaceSeparated: (text: string) => string;
export declare const getAdjacentStringCombinations: (strs: string[], ignoreStrs?: string[]) => string[];
export declare const removeWord: (source: string, wordToRemove: string) => string;
export declare const isString: (str: string | undefined) => str is string;