@stryke/path 0.10.0 → 0.10.2
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/dist/file-path-fns.d.ts +10 -0
- package/package.json +3 -3
package/dist/file-path-fns.d.ts
CHANGED
|
@@ -58,6 +58,11 @@ export declare function findFolderName(filePath: string): string;
|
|
|
58
58
|
/**
|
|
59
59
|
* Find the file extension from a file path.
|
|
60
60
|
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* The file extension is the part of the file name that comes after the last dot (`.`) in the file name. If the file name does not contain a dot, or if it ends with a dot, this function will return `undefined`.
|
|
63
|
+
*
|
|
64
|
+
* The returned extension **will not** include the dot, for example `txt` or `js` instead of `.txt` or `.js`.
|
|
65
|
+
*
|
|
61
66
|
* @param filePath - The file path to process
|
|
62
67
|
* @returns The file extension or undefined if no extension is found
|
|
63
68
|
*/
|
|
@@ -65,6 +70,11 @@ export declare function findFileExtension(filePath: string): string | undefined;
|
|
|
65
70
|
/**
|
|
66
71
|
* Find the file extension from a file path or an empty string.
|
|
67
72
|
*
|
|
73
|
+
* @remarks
|
|
74
|
+
* The file extension is the part of the file name that comes after the last dot (`.`) in the file name. If the file name does not contain a dot, or if it ends with a dot, this function will return `undefined`.
|
|
75
|
+
*
|
|
76
|
+
* The returned extension **will not** include the dot, for example `txt` or `js` instead of `.txt` or `.js`.
|
|
77
|
+
*
|
|
68
78
|
* @param filePath - The file path to process
|
|
69
79
|
* @returns The file extension or an empty string if no extension is found
|
|
70
80
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/path",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various utilities that expand the functionality of NodeJs's built-in `path` module",
|
|
6
6
|
"repository": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"private": false,
|
|
12
12
|
"dependencies": { "@storm-software/config-tools": "latest", "mlly": "1.7.4" },
|
|
13
|
-
"devDependencies": { "@stryke/types": "^0.8.
|
|
13
|
+
"devDependencies": { "@stryke/types": "^0.8.6", "@types/node": "^22.14.0" },
|
|
14
14
|
"publishConfig": { "access": "public" },
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"files": ["dist/**/*"],
|
|
@@ -260,5 +260,5 @@
|
|
|
260
260
|
"main": "./dist/index.cjs",
|
|
261
261
|
"module": "./dist/index.mjs",
|
|
262
262
|
"types": "./dist/index.d.ts",
|
|
263
|
-
"gitHead": "
|
|
263
|
+
"gitHead": "b72d8a5bebd6ce47e458809cab4392bb000ecd81"
|
|
264
264
|
}
|