@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
93 lines • 1.89 kB
TypeScript
/**
* Represents different naming conventions for strings.
*/
export type Names = {
/**
* The string in PascalCase format.
* Example: "PascalCaseExample"
*/
pascalCase: string;
/**
* The string in camelCase format.
* Example: "camelCaseExample"
*/
camelCase: string;
/**
* The string in kebab-case format.
* Example: "kebab-case-example"
*/
kebabCase: string;
/**
* The string in snake_case format.
* Example: "snake_case_example"
*/
snakeCase: string;
/**
* Dot case
* Example: 'dot.case.ts'
*/
dotCase: string;
/**
* The string in CONSTANT_CASE format.
* Example: "CONSTANT_CASE_EXAMPLE"
*/
constCase: string;
/**
* Example: "Sentence case example."
*/
sentenceCase: string;
/**
* The string in Title Case format.
* Example: "Title Case Example"
*/
titleCase: string;
/**
* Example: ResourceNameController
*/
controllerName: string;
/**
* Example: ResourceNameService
*/
serviceName: string;
/**
* Example: ResourceNameModule
*/
moduleName: string;
/**
* Example: CreateResourceNameDto
*/
createDtoName: string;
/**
* Example: UpdateResourceNameDto
*/
updateDtoName: string;
/**
* Example: QueryResourceNameDto
*/
queryDtoName: string;
/**
* Example: ResourceNameModel
*/
modelName: string;
/**
* Example: ResourceNameOptions
*/
optionsName: string;
/**
* Example: propertyName
*/
propertyName: string;
/**
* Example: ClassName
*/
className: string;
/**
* Example: file-name
*/
fileName: string;
/**
* Example: CONSTANT_NAME
*/
constantName: string;
};
//# sourceMappingURL=names-type.d.ts.map