@puq/names
Version:
The String Names Library provides a simple names function that takes a string input and returns all possible naming convention variants, such as camelCase, snake_case, CONSTANT_CASE, and more. Perfect for tasks like code generation, formatting standardiza
20 lines • 812 B
TypeScript
import type { NamesOption } from './names-option.js';
import type { Names } from './names-type.js';
/**
* Generates various case formats for a given resource name.
*
* @param resourceName the resource name
* @param options extra options such as prefix, suffix {@link NamesOption}
* @returns An object containing the resource name in different case formats:
* - `camelCase`: camelCase format.
* - `constCase`: CONSTANT_CASE format.
* - `kebabCase`: kebab-case format.
* - `pascalCase`: PascalCase format.
* - `snakeCase`: snake_case format.
* - `titleCase`: Title Case format.
* - `controllerName`: NameController.
* - `serviceName`: NameService.
* - `moduleName`: NameModule.
*/
export declare function names(resourceName: string, options?: NamesOption): Names;
//# sourceMappingURL=names.d.ts.map