@mondart/nestjs-common-module 1.1.13 → 1.1.14

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.
@@ -0,0 +1,4 @@
1
+ export declare class ConvertStringCaseHelper {
2
+ static pascalToKebab(str: string): string;
3
+ static camelToKebab(str: string): string;
4
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConvertStringCaseHelper = void 0;
4
+ class ConvertStringCaseHelper {
5
+ static pascalToKebab(str) {
6
+ return str
7
+ .replace(/([A-Z])([A-Z])/g, '$1-$2')
8
+ .replace(/([a-z0-9])([A-Z])/g, '$1-$2')
9
+ .toLowerCase();
10
+ }
11
+ static camelToKebab(str) {
12
+ return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
13
+ }
14
+ }
15
+ exports.ConvertStringCaseHelper = ConvertStringCaseHelper;
@@ -1,3 +1,4 @@
1
1
  export * from './get-env.helper';
2
2
  export * from './multi-inheritance.helper';
3
3
  export * from './message-formatter.helper';
4
+ export * from './convert-string-case.helper';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-env.helper"), exports);
18
18
  __exportStar(require("./multi-inheritance.helper"), exports);
19
19
  __exportStar(require("./message-formatter.helper"), exports);
20
+ __exportStar(require("./convert-string-case.helper"), exports);