@mfdj/tsc-as-build-tool 0.4.0

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.
package/.node-version ADDED
@@ -0,0 +1 @@
1
+ 24.4.1
@@ -0,0 +1,4 @@
1
+ export declare class StringToLowercase {
2
+ static ToLower(stringName: string): string;
3
+ }
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qBAAa,iBAAiB;IAE5B,MAAM,CAAC,OAAO,CAAC,UAAU,EAAC,MAAM;CAejC"}
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ export class StringToLowercase {
2
+ static ToLower(stringName) {
3
+ let lower = "";
4
+ for (let i = 0; i < stringName.length; i++) {
5
+ let value = stringName.charCodeAt(i);
6
+ if (value >= 65 && value <= 90) {
7
+ lower += String.fromCharCode(value + 32);
8
+ }
9
+ else {
10
+ lower += stringName[i];
11
+ }
12
+ }
13
+ return lower;
14
+ }
15
+ }
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "devDependencies": {
3
+ "typescript": "^5.9.3"
4
+ },
5
+ "name": "@mfdj/tsc-as-build-tool",
6
+ "scripts": {
7
+ "build": "rm -rf dist/*; tsc",
8
+ "prepare": "npm run build"
9
+ },
10
+ "version": "0.4.0",
11
+ "type": "module"
12
+ }
package/src/index.ts ADDED
@@ -0,0 +1,18 @@
1
+ export class StringToLowercase
2
+ {
3
+ static ToLower(stringName:string) {
4
+ let lower = "";
5
+
6
+ for (let i = 0; i < stringName.length; i++) {
7
+ let value = stringName.charCodeAt(i);
8
+
9
+ if (value >= 65 && value <= 90) {
10
+ lower += String.fromCharCode(value + 32);
11
+ } else {
12
+ lower += stringName[i];
13
+ }
14
+ }
15
+
16
+ return lower;
17
+ }
18
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "declarationMap": true,
5
+ "module": "nodenext",
6
+ "outDir": "./dist",
7
+ "strict": true,
8
+ "target": "esnext",
9
+ },
10
+ "exclude": ["node_modules", "**/__tests__/*"],
11
+ "include": ["src"]
12
+ }