@sorrell/utilities 1.2.15 → 1.2.16

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 (60) hide show
  1. package/Distribution/PackageExports.Generated.json +10 -0
  2. package/Distribution/Types/FileSystem/FileSystem.d.cts +2 -0
  3. package/Distribution/Types/FileSystem/FileSystem.d.cts.map +1 -1
  4. package/Distribution/Types/FileSystem/FileSystem.d.mts +2 -0
  5. package/Distribution/Types/FileSystem/FileSystem.d.mts.map +1 -1
  6. package/Distribution/Types/FileSystem/FileSystem.d.ts +2 -0
  7. package/Distribution/Types/FileSystem/FileSystem.d.ts.map +1 -1
  8. package/Distribution/Types/FileSystem/Module/Module.Internal.d.cts +7 -0
  9. package/Distribution/Types/FileSystem/Module/Module.Internal.d.cts.map +10 -0
  10. package/Distribution/Types/FileSystem/Module/Module.Internal.d.mts +7 -0
  11. package/Distribution/Types/FileSystem/Module/Module.Internal.d.mts.map +10 -0
  12. package/Distribution/Types/FileSystem/Module/Module.Internal.d.ts +7 -0
  13. package/Distribution/Types/FileSystem/Module/Module.Internal.d.ts.map +1 -0
  14. package/Distribution/Types/FileSystem/Module/Module.Types.d.cts +14 -0
  15. package/Distribution/Types/FileSystem/Module/Module.Types.d.cts.map +10 -0
  16. package/Distribution/Types/FileSystem/Module/Module.Types.d.mts +14 -0
  17. package/Distribution/Types/FileSystem/Module/Module.Types.d.mts.map +10 -0
  18. package/Distribution/Types/FileSystem/Module/Module.Types.d.ts +14 -0
  19. package/Distribution/Types/FileSystem/Module/Module.Types.d.ts.map +1 -0
  20. package/Distribution/Types/FileSystem/Module/Module.d.cts +15 -0
  21. package/Distribution/Types/FileSystem/Module/Module.d.cts.map +10 -0
  22. package/Distribution/Types/FileSystem/Module/Module.d.mts +15 -0
  23. package/Distribution/Types/FileSystem/Module/Module.d.mts.map +10 -0
  24. package/Distribution/Types/FileSystem/Module/Module.d.ts +15 -0
  25. package/Distribution/Types/FileSystem/Module/Module.d.ts.map +1 -0
  26. package/Distribution/Types/FileSystem/Module/index.d.cts +9 -0
  27. package/Distribution/Types/FileSystem/Module/index.d.cts.map +10 -0
  28. package/Distribution/Types/FileSystem/Module/index.d.mts +9 -0
  29. package/Distribution/Types/FileSystem/Module/index.d.mts.map +10 -0
  30. package/Distribution/Types/FileSystem/Module/index.d.ts +9 -0
  31. package/Distribution/Types/FileSystem/Module/index.d.ts.map +1 -0
  32. package/Distribution/Types/FileSystem/index.d.cts +1 -0
  33. package/Distribution/Types/FileSystem/index.d.cts.map +1 -1
  34. package/Distribution/Types/FileSystem/index.d.mts +1 -0
  35. package/Distribution/Types/FileSystem/index.d.mts.map +1 -1
  36. package/Distribution/Types/FileSystem/index.d.ts +1 -0
  37. package/Distribution/Types/FileSystem/index.d.ts.map +1 -1
  38. package/Distribution/Types/String/String.d.cts +1 -0
  39. package/Distribution/Types/String/String.d.cts.map +1 -1
  40. package/Distribution/Types/String/String.d.mts +1 -0
  41. package/Distribution/Types/String/String.d.mts.map +1 -1
  42. package/Distribution/Types/String/String.d.ts +1 -0
  43. package/Distribution/Types/String/String.d.ts.map +1 -1
  44. package/Distribution/fs-module.cjs +161 -0
  45. package/Distribution/fs-module.cjs.map +7 -0
  46. package/Distribution/fs-module.js +128 -0
  47. package/Distribution/fs-module.js.map +7 -0
  48. package/Distribution/fs.cjs +116 -2
  49. package/Distribution/fs.cjs.map +4 -4
  50. package/Distribution/fs.js +125 -5
  51. package/Distribution/fs.js.map +4 -4
  52. package/Distribution/index.cjs +144 -37
  53. package/Distribution/index.cjs.map +4 -4
  54. package/Distribution/index.js +147 -40
  55. package/Distribution/index.js.map +4 -4
  56. package/Distribution/string.cjs +4 -0
  57. package/Distribution/string.cjs.map +2 -2
  58. package/Distribution/string.js +4 -0
  59. package/Distribution/string.js.map +2 -2
  60. package/package.json +11 -1
@@ -79,6 +79,16 @@
79
79
  "types": "./Distribution/fs.d.cts"
80
80
  }
81
81
  },
82
+ "fs-module": {
83
+ "import": {
84
+ "default": "./Distribution/fs-module.js",
85
+ "types": "./Distribution/fs-module.d.mts"
86
+ },
87
+ "require": {
88
+ "default": "./Distribution/fs-module.cjs",
89
+ "types": "./Distribution/fs-module.d.cts"
90
+ }
91
+ },
82
92
  "functional": {
83
93
  "import": {
84
94
  "default": "./Distribution/functional.js",
@@ -17,6 +17,8 @@ export declare function IsSupportedFileExtension(Extension: FFileExtension): boo
17
17
  * names when pasting files.
18
18
  */
19
19
  export declare function GetSafeNewPath(InPath: string): Promise<string>;
20
+ export declare const ReservedWindowsFileNames: readonly ["CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9"];
21
+ export declare const InvalidCharacters: RegExp;
20
22
  /**
21
23
  * @param DirectoryPath - The path to the directory in which you wish to check.
22
24
  * @param FileName - The desired file name.
@@ -6,5 +6,5 @@
6
6
  "../../../Source/FileSystem/FileSystem.ts"
7
7
  ],
8
8
  "names": [],
9
- "mappings": "AAAA;;;;;GAKG;AAGH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAmB5D;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,cAAc,GAAG,OAAO,CAuC3E;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBpE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CACjC,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,cAAc,GAAE,OAAe,EAC/B,SAAS,GAAE,cAAc,GAAG,SAAqB,GAClD,OAAO,CAAC,OAAO,CAAC,CAmClB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,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,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGjF;AAED,KAAK,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAUpD,KAAK,cAAc,GAAG;IAClB,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC7B,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IAChD,MAAM,CAAC,EAAE,WAAW,CAAC;CACxB,CAAC;AAwFF,wBAAsB,kBAAkB,CACpC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,yBAA8B,GACxC,OAAO,CAAC,IAAI,CAAC,CAsDf"
10
10
  }
@@ -17,6 +17,8 @@ export declare function IsSupportedFileExtension(Extension: FFileExtension): boo
17
17
  * names when pasting files.
18
18
  */
19
19
  export declare function GetSafeNewPath(InPath: string): Promise<string>;
20
+ export declare const ReservedWindowsFileNames: readonly ["CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9"];
21
+ export declare const InvalidCharacters: RegExp;
20
22
  /**
21
23
  * @param DirectoryPath - The path to the directory in which you wish to check.
22
24
  * @param FileName - The desired file name.
@@ -6,5 +6,5 @@
6
6
  "../../../Source/FileSystem/FileSystem.ts"
7
7
  ],
8
8
  "names": [],
9
- "mappings": "AAAA;;;;;GAKG;AAGH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAmB5D;;;GAGG;AACH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O,CAuC3E;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBpE;AAGD,eAAO,MAAM,wBAAwB,uLAwBvB,CAAC;AAEf,eAAO,MAAM,iBAAiB,EAAE,MAAqC,CAAC;AAEtE;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CACjC,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,cAAc,GAAE,OAAe,EAC/B,SAAS,GAAE,cAAc,GAAG,SAAqB,GAClD,OAAO,CAAC,OAAO,CAAC,CAmClB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGjF;AAED,KAAK,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAUpD,KAAK,cAAc,GAAG;IAClB,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC7B,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IAChD,MAAM,CAAC,EAAE,WAAW,CAAC;CACxB,CAAC;AAwFF,wBAAsB,kBAAkB,CACpC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,yBAA8B,GACxC,OAAO,CAAC,IAAI,CAAC,CAsDf"
10
10
  }
@@ -17,6 +17,8 @@ export declare function IsSupportedFileExtension(Extension: FFileExtension): boo
17
17
  * names when pasting files.
18
18
  */
19
19
  export declare function GetSafeNewPath(InPath: string): Promise<string>;
20
+ export declare const ReservedWindowsFileNames: readonly ["CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9"];
21
+ export declare const InvalidCharacters: RegExp;
20
22
  /**
21
23
  * @param DirectoryPath - The path to the directory in which you wish to check.
22
24
  * @param FileName - The desired file name.
@@ -1 +1 @@
1
- {"version":3,"file":"FileSystem.d.ts","sourceRoot":"","sources":["../../../Source/FileSystem/FileSystem.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAmB5D;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,cAAc,GAAG,OAAO,CAuC3E;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBpE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CACjC,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,cAAc,GAAE,OAAe,EAC/B,SAAS,GAAE,cAAc,GAAG,SAAqB,GAClD,OAAO,CAAC,OAAO,CAAC,CAmClB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGjF;AAMD,KAAK,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAUpD,KAAK,cAAc,GAAG;IAClB,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EA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C;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC7B,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IAChD,MAAM,CAAC,EAAE,WAAW,CAAC;CACxB,CAAC;AAwFF,wBAAsB,kBAAkB,CACpC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,yBAA8B,GACxC,OAAO,CAAC,IAAI,CAAC,CAsDf"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Module.Internal.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ //# sourceMappingURL=Module.Internal.d.cts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "Module.Internal.d.cts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../../../Source/FileSystem/Module/Module.Internal.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA;;;;;GAKG"
10
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Module.Internal.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ //# sourceMappingURL=Module.Internal.d.mts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "Module.Internal.d.mts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../../../Source/FileSystem/Module/Module.Internal.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA;;;;;GAKG"
10
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Module.Internal.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ //# sourceMappingURL=Module.Internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Module.Internal.d.ts","sourceRoot":"","sources":["../../../../Source/FileSystem/Module/Module.Internal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @file Module.Types.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ import type { ValidExtensions } from "./Module";
8
+ export declare namespace Extension {
9
+ type Any = typeof ValidExtensions.Any[number];
10
+ type Declaration = typeof ValidExtensions.Declaration[number];
11
+ type Source = typeof ValidExtensions.Source[number];
12
+ }
13
+ export type ExtensionPolicy = "Require" | "Disallow" | ReadonlyArray<Extension.Any>;
14
+ //# sourceMappingURL=Module.Types.d.cts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "Module.Types.d.cts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../../../Source/FileSystem/Module/Module.Types.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,yBAAiB,SAAS,CAC1B;IACI,KAAY,GAAG,GAAG,OAAO,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAErD,KAAY,WAAW,GAAG,OAAO,eAAe,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAErE,KAAY,MAAM,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;CAC9D;AAED,MAAM,MAAM,eAAe,GACrB,SAAS,GACT,UAAU,GACV,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC"
10
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @file Module.Types.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ import type { ValidExtensions } from "./Module";
8
+ export declare namespace Extension {
9
+ type Any = typeof ValidExtensions.Any[number];
10
+ type Declaration = typeof ValidExtensions.Declaration[number];
11
+ type Source = typeof ValidExtensions.Source[number];
12
+ }
13
+ export type ExtensionPolicy = "Require" | "Disallow" | ReadonlyArray<Extension.Any>;
14
+ //# sourceMappingURL=Module.Types.d.mts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "Module.Types.d.mts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../../../Source/FileSystem/Module/Module.Types.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,yBAAiB,SAAS,CAC1B;IACI,KAAY,GAAG,GAAG,OAAO,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAErD,KAAY,WAAW,GAAG,OAAO,eAAe,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAErE,KAAY,MAAM,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;CAC9D;AAED,MAAM,MAAM,eAAe,GACrB,SAAS,GACT,UAAU,GACV,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC"
10
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @file Module.Types.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ import type { ValidExtensions } from "./Module";
8
+ export declare namespace Extension {
9
+ type Any = typeof ValidExtensions.Any[number];
10
+ type Declaration = typeof ValidExtensions.Declaration[number];
11
+ type Source = typeof ValidExtensions.Source[number];
12
+ }
13
+ export type ExtensionPolicy = "Require" | "Disallow" | ReadonlyArray<Extension.Any>;
14
+ //# sourceMappingURL=Module.Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Module.Types.d.ts","sourceRoot":"","sources":["../../../../Source/FileSystem/Module/Module.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,yBAAiB,SAAS,CAC1B;IACI,KAAY,GAAG,GAAG,OAAO,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAErD,KAAY,WAAW,GAAG,OAAO,eAAe,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAErE,KAAY,MAAM,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;CAC9D;AAED,MAAM,MAAM,eAAe,GACrB,SAAS,GACT,UAAU,GACV,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @file Module.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ import type { ExtensionPolicy } from "./Module.Types.cjs";
8
+ export declare namespace ValidExtensions {
9
+ const Source: readonly [".ts", ".tsx", ".mts", ".cts"];
10
+ const Declaration: readonly [".d.ts", ".d.mts", ".d.cts"];
11
+ const Any: readonly [".ts", ".tsx", ".mts", ".cts", ".d.ts", ".d.mts", ".d.cts"];
12
+ }
13
+ export declare function HasTypeScriptExtension(FileName: string): boolean;
14
+ export declare function IsValidFileName(FileName: string, ExtensionPolicy?: ExtensionPolicy): boolean;
15
+ //# sourceMappingURL=Module.d.cts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "Module.d.cts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../../../Source/FileSystem/Module/Module.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKzD,yBAAiB,eAAe,CAChC;IAII,MAAM,MAAM,0CAME,CAAC;IAKf,MAAM,WAAW,wCAKH,CAAC;IAKf,MAAM,GAAG,uEASK,CAAC;CAClB;AAID,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGhE;AAED,wBAAgB,eAAe,CAC3B,QAAQ,EAAE,MAAM,EAChB,eAAe,GAAE,eAA4B,GAC9C,OAAO,CAmDT"
10
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @file Module.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ import type { ExtensionPolicy } from "./Module.Types.mjs";
8
+ export declare namespace ValidExtensions {
9
+ const Source: readonly [".ts", ".tsx", ".mts", ".cts"];
10
+ const Declaration: readonly [".d.ts", ".d.mts", ".d.cts"];
11
+ const Any: readonly [".ts", ".tsx", ".mts", ".cts", ".d.ts", ".d.mts", ".d.cts"];
12
+ }
13
+ export declare function HasTypeScriptExtension(FileName: string): boolean;
14
+ export declare function IsValidFileName(FileName: string, ExtensionPolicy?: ExtensionPolicy): boolean;
15
+ //# sourceMappingURL=Module.d.mts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "Module.d.mts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../../../Source/FileSystem/Module/Module.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKzD,yBAAiB,eAAe,CAChC;IAII,MAAM,MAAM,0CAME,CAAC;IAKf,MAAM,WAAW,wCAKH,CAAC;IAKf,MAAM,GAAG,uEASK,CAAC;CAClB;AAID,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGhE;AAED,wBAAgB,eAAe,CAC3B,QAAQ,EAAE,MAAM,EAChB,eAAe,GAAE,eAA4B,GAC9C,OAAO,CAmDT"
10
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @file Module.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ import type { ExtensionPolicy } from "./Module.Types.ts";
8
+ export declare namespace ValidExtensions {
9
+ const Source: readonly [".ts", ".tsx", ".mts", ".cts"];
10
+ const Declaration: readonly [".d.ts", ".d.mts", ".d.cts"];
11
+ const Any: readonly [".ts", ".tsx", ".mts", ".cts", ".d.ts", ".d.mts", ".d.cts"];
12
+ }
13
+ export declare function HasTypeScriptExtension(FileName: string): boolean;
14
+ export declare function IsValidFileName(FileName: string, ExtensionPolicy?: ExtensionPolicy): boolean;
15
+ //# sourceMappingURL=Module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../../../Source/FileSystem/Module/Module.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKzD,yBAAiB,eAAe,CAChC;IAII,MAAM,MAAM,0CAME,CAAC;IAKf,MAAM,WAAW,wCAKH,CAAC;IAKf,MAAM,GAAG,uEASK,CAAC;CAClB;AAID,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGhE;AAED,wBAAgB,eAAe,CAC3B,QAAQ,EAAE,MAAM,EAChB,eAAe,GAAE,eAA4B,GAC9C,OAAO,CAmDT"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @file index.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ export * from "./Module.cjs";
8
+ export * from "./Module.Types.cjs";
9
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "index.d.cts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../../../Source/FileSystem/Module/index.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA;;;;;GAKG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"
10
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @file index.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ export * from "./Module.mjs";
8
+ export * from "./Module.Types.mjs";
9
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "file": "index.d.mts",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "../../../../Source/FileSystem/Module/index.ts"
7
+ ],
8
+ "names": [],
9
+ "mappings": "AAAA;;;;;GAKG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"
10
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @file index.ts
3
+ * @author Gage Sorrell <gage@sorrell.sh>
4
+ * @copyright (c) 2026 Gage Sorrell
5
+ * @license MIT
6
+ */
7
+ export * from "./Module.ts";
8
+ export * from "./Module.Types.ts";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Source/FileSystem/Module/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
@@ -6,4 +6,5 @@
6
6
  */
7
7
  export * from "./FileSystem.cjs";
8
8
  export * from "./FileSystem.Types.cjs";
9
+ export * as Module from "./Module/index.cjs";
9
10
  //# sourceMappingURL=index.d.cts.map
@@ -6,5 +6,5 @@
6
6
  "../../../Source/FileSystem/index.ts"
7
7
  ],
8
8
  "names": [],
9
- "mappings": "AAAA;;;;;GAKG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"
9
+ "mappings": "AAAA;;;;;GAKG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC"
10
10
  }
@@ -6,4 +6,5 @@
6
6
  */
7
7
  export * from "./FileSystem.mjs";
8
8
  export * from "./FileSystem.Types.mjs";
9
+ export * as Module from "./Module/index.mjs";
9
10
  //# sourceMappingURL=index.d.mts.map
@@ -6,5 +6,5 @@
6
6
  "../../../Source/FileSystem/index.ts"
7
7
  ],
8
8
  "names": [],
9
- "mappings": "AAAA;;;;;GAKG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"
9
+ "mappings": "AAAA;;;;;GAKG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC"
10
10
  }
@@ -6,4 +6,5 @@
6
6
  */
7
7
  export * from "./FileSystem.ts";
8
8
  export * from "./FileSystem.Types.ts";
9
+ export * as Module from "./Module/index.ts";
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Source/FileSystem/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Source/FileSystem/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC"}
@@ -70,4 +70,5 @@ export declare function IsNumeric(TestString: string): boolean;
70
70
  * ```
71
71
  */
72
72
  export declare function Dedent(Content: string, IndentLength?: number): string;
73
+ export declare function GetUtf8ByteLength(Text: string): number;
73
74
  //# sourceMappingURL=String.d.cts.map
@@ -6,5 +6,5 @@
6
6
  "../../../Source/String/String.ts"
7
7
  ],
8
8
  "names": [],
9
- "mappings": "AAAA;;;;;GAKG;AAEH;;;GAGG;AAKH;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CA4BrE"
9
+ "mappings": "AAAA;;;;;GAKG;AAEH;;;GAGG;AAKH;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CA4BrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGtD"
10
10
  }
@@ -70,4 +70,5 @@ export declare function IsNumeric(TestString: string): boolean;
70
70
  * ```
71
71
  */
72
72
  export declare function Dedent(Content: string, IndentLength?: number): string;
73
+ export declare function GetUtf8ByteLength(Text: string): number;
73
74
  //# sourceMappingURL=String.d.mts.map
@@ -6,5 +6,5 @@
6
6
  "../../../Source/String/String.ts"
7
7
  ],
8
8
  "names": [],
9
- "mappings": "AAAA;;;;;GAKG;AAEH;;;GAGG;AAKH;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CA4BrE"
9
+ "mappings": "AAAA;;;;;GAKG;AAEH;;;GAGG;AAKH;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CA4BrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGtD"
10
10
  }
@@ -70,4 +70,5 @@ export declare function IsNumeric(TestString: string): boolean;
70
70
  * ```
71
71
  */
72
72
  export declare function Dedent(Content: string, IndentLength?: number): string;
73
+ export declare function GetUtf8ByteLength(Text: string): number;
73
74
  //# sourceMappingURL=String.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"String.d.ts","sourceRoot":"","sources":["../../../Source/String/String.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AAKH;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CA4BrE"}
1
+ {"version":3,"file":"String.d.ts","sourceRoot":"","sources":["../../../Source/String/String.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AAKH;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CA4BrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGtD"}
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // Source/FileSystem/Module/index.ts
31
+ var Module_exports = {};
32
+ __export(Module_exports, {
33
+ HasTypeScriptExtension: () => HasTypeScriptExtension,
34
+ IsValidFileName: () => IsValidFileName,
35
+ ValidExtensions: () => ValidExtensions
36
+ });
37
+ module.exports = __toCommonJS(Module_exports);
38
+
39
+ // Source/FileSystem/FileSystem.ts
40
+ var FileSystem = __toESM(require("node:fs/promises"), 1);
41
+ var Path = __toESM(require("node:path"), 1);
42
+ var import_path = require("path");
43
+ var import_fs = require("fs");
44
+ var import_fs2 = require("fs");
45
+ var import_os = __toESM(require("os"), 1);
46
+ var ReservedWindowsFileNames = [
47
+ "CON",
48
+ "PRN",
49
+ "AUX",
50
+ "NUL",
51
+ "COM1",
52
+ "COM2",
53
+ "COM3",
54
+ "COM4",
55
+ "COM5",
56
+ "COM6",
57
+ "COM7",
58
+ "COM8",
59
+ "COM9",
60
+ "LPT1",
61
+ "LPT2",
62
+ "LPT3",
63
+ "LPT4",
64
+ "LPT5",
65
+ "LPT6",
66
+ "LPT7",
67
+ "LPT8",
68
+ "LPT9"
69
+ ];
70
+ var InvalidCharacters = /[<>:"/\\|?*\u0000-\u001F]/u;
71
+
72
+ // Source/String/String.ts
73
+ function GetUtf8ByteLength(Text) {
74
+ return new TextEncoder().encode(Text).length;
75
+ }
76
+
77
+ // Source/FileSystem/Module/Module.ts
78
+ var ValidExtensions;
79
+ ((ValidExtensions2) => {
80
+ ValidExtensions2.Source = [
81
+ ".ts",
82
+ ".tsx",
83
+ ".mts",
84
+ ".cts"
85
+ ];
86
+ ValidExtensions2.Declaration = [
87
+ ".d.ts",
88
+ ".d.mts",
89
+ ".d.cts"
90
+ ];
91
+ ValidExtensions2.Any = [
92
+ ".ts",
93
+ ".tsx",
94
+ ".mts",
95
+ ".cts",
96
+ ".d.ts",
97
+ ".d.mts",
98
+ ".d.cts"
99
+ ];
100
+ })(ValidExtensions || (ValidExtensions = {}));
101
+ function HasTypeScriptExtension(FileName) {
102
+ return /\.(ts|tsx|mts|cts|d\.ts|d\.mts|d\.cts)$/iu.test(FileName);
103
+ }
104
+ function IsValidFileName(FileName, ExtensionPolicy = "Disallow") {
105
+ if (FileName.length === 0) {
106
+ return false;
107
+ }
108
+ if (FileName === "." || FileName === "..") {
109
+ return false;
110
+ }
111
+ const DoesExtensionSatisfyPolicy = ExtensionPolicy === "Disallow" && !HasTypeScriptExtension(FileName) || ExtensionPolicy === "Require" && HasTypeScriptExtension(FileName) || Array.isArray(ExtensionPolicy) && ExtensionPolicy.some(FileName.endsWith);
112
+ if (!DoesExtensionSatisfyPolicy) {
113
+ return false;
114
+ }
115
+ if (FileName.endsWith(".") || FileName.endsWith(" ")) {
116
+ return false;
117
+ }
118
+ if (GetUtf8ByteLength(FileName) > 255) {
119
+ return false;
120
+ }
121
+ if (InvalidCharacters.test(FileName)) {
122
+ return false;
123
+ }
124
+ const FileNameWithoutDots = FileName.split(".")[0]?.toUpperCase();
125
+ const FileNameContainsWindowsReserved = FileNameWithoutDots !== void 0 && ReservedWindowsFileNames.includes(FileNameWithoutDots);
126
+ if (FileNameContainsWindowsReserved) {
127
+ return false;
128
+ }
129
+ return true;
130
+ }
131
+ /**
132
+ * @file FileSystem.ts
133
+ * @author Gage Sorrell <gage@sorrell.sh>
134
+ * @copyright (c) 2026 Gage Sorrell
135
+ * @license MIT
136
+ */
137
+ /**
138
+ * @file String.ts
139
+ * @author Gage Sorrell <gage@sorrell.sh>
140
+ * @copyright (c) 2026 Gage Sorrell
141
+ * @license MIT
142
+ */
143
+ /**
144
+ * @file Module.ts
145
+ * @author Gage Sorrell <gage@sorrell.sh>
146
+ * @copyright (c) 2026 Gage Sorrell
147
+ * @license MIT
148
+ */
149
+ /**
150
+ * @file Module.Types.ts
151
+ * @author Gage Sorrell <gage@sorrell.sh>
152
+ * @copyright (c) 2026 Gage Sorrell
153
+ * @license MIT
154
+ */
155
+ /**
156
+ * @file index.ts
157
+ * @author Gage Sorrell <gage@sorrell.sh>
158
+ * @copyright (c) 2026 Gage Sorrell
159
+ * @license MIT
160
+ */
161
+ //# sourceMappingURL=fs-module.cjs.map