deep-case-crafter 1.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.d.cts +231 -0
  3. package/dist/index.d.mts +231 -0
  4. package/dist/index.d.ts +230 -4
  5. package/dist/index.js +1 -1
  6. package/dist/index.mjs +1 -0
  7. package/package.json +33 -23
  8. package/readme.md +63 -46
  9. package/dist/constants/formatterMap.d.ts +0 -21
  10. package/dist/constants/regex.d.ts +0 -9
  11. package/dist/dataTransformers/primitiveTransformer.d.ts +0 -7
  12. package/dist/dataTransformers/transformArray.d.ts +0 -19
  13. package/dist/dataTransformers/transformMap.d.ts +0 -18
  14. package/dist/dataTransformers/transformObject.d.ts +0 -21
  15. package/dist/dataTransformers/transformSingleWord.d.ts +0 -8
  16. package/dist/index.esm.js +0 -1
  17. package/dist/transform/internalTransform.d.ts +0 -15
  18. package/dist/transform/transform.d.ts +0 -21
  19. package/dist/transform/transformCase.d.ts +0 -23
  20. package/dist/types/helperTypes.d.ts +0 -3
  21. package/dist/types/stringCaseTypes.d.ts +0 -4
  22. package/dist/types/transformOptionTypes.d.ts +0 -41
  23. package/dist/types/transformTypes.d.ts +0 -279
  24. package/dist/utils/caseDetectors/isCamelCase.d.ts +0 -13
  25. package/dist/utils/caseDetectors/isKebabCase.d.ts +0 -13
  26. package/dist/utils/caseDetectors/isPascalCase.d.ts +0 -14
  27. package/dist/utils/caseDetectors/isSnakeCase.d.ts +0 -14
  28. package/dist/utils/detectSingleWord.d.ts +0 -37
  29. package/dist/utils/detectStringCase.d.ts +0 -17
  30. package/dist/utils/prepareStringTransformation.d.ts +0 -20
  31. package/dist/utils/stringFormatters/camelToKebabCase.d.ts +0 -14
  32. package/dist/utils/stringFormatters/camelToPascalCase.d.ts +0 -14
  33. package/dist/utils/stringFormatters/camelToSnakeCase.d.ts +0 -14
  34. package/dist/utils/stringFormatters/kebabToCamelCase.d.ts +0 -14
  35. package/dist/utils/stringFormatters/kebabToPascalCase.d.ts +0 -14
  36. package/dist/utils/stringFormatters/kebabToSnakeCase.d.ts +0 -14
  37. package/dist/utils/stringFormatters/pascalToCamelCase.d.ts +0 -14
  38. package/dist/utils/stringFormatters/pascalToKebabCase.d.ts +0 -15
  39. package/dist/utils/stringFormatters/pascalToSnakeCase.d.ts +0 -15
  40. package/dist/utils/stringFormatters/snakeToCamelCase.d.ts +0 -14
  41. package/dist/utils/stringFormatters/snakeToKebabCase.d.ts +0 -14
  42. package/dist/utils/stringFormatters/snakeToPascalCase.d.ts +0 -14
@@ -1,14 +0,0 @@
1
- /**
2
- * Converts a camelCase string to PascalCase
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The camelCase string to convert
6
- * @returns The PascalCase transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * camelToPascalCase('helloWorld') // => 'HelloWorld'
11
- * ```
12
- * @internal This function is for internal use by the library
13
- */
14
- export default function camelToPascalCase(str: string): string;
@@ -1,14 +0,0 @@
1
- /**
2
- * Converts a camelCase string to snake_case
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The camelCase string to convert
6
- * @returns The snake_case transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * camelToSnakeCase('helloWorld') // => 'hello_world'
11
- * ```
12
- * @internal This function is for internal use by the library
13
- */
14
- export default function camelToSnakeCase(str: string): string;
@@ -1,14 +0,0 @@
1
- /**
2
- * Converts a kebab-case string to camelCase
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The kebab-case string to convert
6
- * @returns The camelCase transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * kebabToCamelCase('hello-world') // => 'helloWorld'
11
- * ```
12
- * @internal This function is for internal use by the library
13
- */
14
- export default function kebabToCamelCase(str: string): string;
@@ -1,14 +0,0 @@
1
- /**
2
- * Converts a kebab-case string to PascalCase
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The kebab-case string to convert
6
- * @returns The PascalCase transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * kebabToPascalCase('hello-world') // => 'HelloWorld'
11
- * ```
12
- * @internal This function is for internal use by the library
13
- */
14
- export default function kebabToPascalCase(str: string): string;
@@ -1,14 +0,0 @@
1
- /**
2
- * Converts a kebab-case string to snake_case
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The kebab-case string to convert
6
- * @returns The snake_case transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * kebabToSnakeCase('hello-world') // => 'hello_world'
11
- * ```
12
- * @internal This function is for internal use by the library
13
- */
14
- export default function kebabToSnakeCase(str: string): string;
@@ -1,14 +0,0 @@
1
- /**
2
- * Converts a PascalCase string to camelCase
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The PascalCase string to convert
6
- * @returns The camelCase transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * pascalToCamelCase('HelloWorld') // => 'helloWorld'
11
- * ```
12
- * @internal This function is for internal use by the library
13
- */
14
- export default function pascalToCamelCase(str: string): string;
@@ -1,15 +0,0 @@
1
- /**
2
- * Converts a PascalCase string to kebab-case
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The PascalCase string to convert
6
- * @returns The kebab-case transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * pascalToKebabCase('HelloWorld') // => 'hello-world'
11
- * pascalToKebabCase('HTTPResponse') // => 'http-response'
12
- * ```
13
- * @internal This function is for internal use by the library
14
- */
15
- export default function pascalToKebabCase(str: string): string;
@@ -1,15 +0,0 @@
1
- /**
2
- * Converts a PascalCase string to snake_case
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The PascalCase string to convert
6
- * @returns The snake_case transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * pascalToSnakeCase('HelloWorld') // => 'hello_world'
11
- * pascalToSnakeCase('HTTPResponse') // => 'http_response'
12
- * ```
13
- * @internal This function is for internal use by the library
14
- */
15
- export default function pascalToSnakeCase(str: string): string;
@@ -1,14 +0,0 @@
1
- /**
2
- * Converts a snake_case string to camelCase
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The snake_case string to convert
6
- * @returns The camelCase transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * snakeToCamelCase('hello_world') // => 'helloWorld'
11
- * ```
12
- * @internal This function is for internal use by the library
13
- */
14
- export default function snakeToCamelCase(str: string): string;
@@ -1,14 +0,0 @@
1
- /**
2
- * Converts a snake_case string to kebab-case
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The snake_case string to convert
6
- * @returns The kebab-case transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * snakeToKebabCase('hello_world') // => 'hello-world'
11
- * ```
12
- * @internal This function is for internal use by the library
13
- */
14
- export default function snakeToKebabCase(str: string): string;
@@ -1,14 +0,0 @@
1
- /**
2
- * Converts a snake_case string to PascalCase
3
- * Core transformation function without special character handling
4
- *
5
- * @param str - The snake_case string to convert
6
- * @returns The PascalCase transformed string
7
- *
8
- * @example
9
- * ```typescript
10
- * snakeToPascalCase('hello_world') // => 'HelloWorld'
11
- * ```
12
- * @internal This function is for internal use by the library
13
- */
14
- export default function snakeToPascalCase(str: string): string;