@reliverse/pathkit 1.0.0 → 1.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pathkit • cross‑platform path manipulation
2
2
 
3
- > @reliverse/pathkit is a slash‑consistent, cross‑platform path manipulation—drop‑in for `node:path`, always POSIX "/".
3
+ > @reliverse/pathkit is a slash‑consistent, cross‑platform path manipulation—drop‑in for node:path, always POSIX forward slash. @reliverse/pathkit-plus is a utility library which extends the core library with a set of functions for manipulating file paths.
4
4
 
5
5
  [sponsor](https://github.com/sponsors/blefnk) • [discord](https://discord.gg/Pb8uKbwpsJ) • [npm](https://npmjs.com/package/@reliverse/pathkit) • [repo](https://github.com/reliverse/pathkit)
6
6
 
package/bin/mod.d.ts CHANGED
@@ -1,4 +1,32 @@
1
- export { delimiter, posix, win32 } from "./pathkit-impl/args-impl.js";
2
- export { normalizeAliases, resolveAlias, reverseResolveAlias, filename, } from "./pathkit-impl/args-utils.js";
3
- export { normalizeWindowsPath } from "./pathkit-impl/_internal.js";
4
- export { sep, normalize, join, resolve, normalizeString, isAbsolute, toNamespacedPath, extname, relative, dirname, format, basename, parse, } from "./pathkit-impl/_path.js";
1
+ import { normalizeWindowsPath } from "./pathkit-impl/_internal.js";
2
+ import { sep, normalize, join, resolve, normalizeString, isAbsolute, toNamespacedPath, extname, relative, dirname, format, basename, parse } from "./pathkit-impl/_path.js";
3
+ import { delimiter, posix, win32 } from "./pathkit-impl/args-impl.js";
4
+ import { normalizeAliases, resolveAlias, reverseResolveAlias, filename } from "./pathkit-impl/args-utils.js";
5
+ export { delimiter, posix, win32 };
6
+ export { normalizeAliases, resolveAlias, reverseResolveAlias, filename };
7
+ export { normalizeWindowsPath };
8
+ export { sep, normalize, join, resolve, normalizeString, isAbsolute, toNamespacedPath, extname, relative, dirname, format, basename, parse, };
9
+ declare const pathkit: {
10
+ delimiter: ":" | ";";
11
+ posix: import("path").PlatformPath;
12
+ win32: import("path").PlatformPath;
13
+ normalizeAliases: typeof normalizeAliases;
14
+ resolveAlias: typeof resolveAlias;
15
+ reverseResolveAlias: typeof reverseResolveAlias;
16
+ filename: typeof filename;
17
+ normalizeWindowsPath: typeof normalizeWindowsPath;
18
+ sep: string;
19
+ normalize: any;
20
+ join: any;
21
+ resolve: any;
22
+ normalizeString: typeof normalizeString;
23
+ isAbsolute: any;
24
+ toNamespacedPath: any;
25
+ extname: any;
26
+ relative: any;
27
+ dirname: any;
28
+ format: any;
29
+ basename: any;
30
+ parse: any;
31
+ };
32
+ export default pathkit;
package/bin/mod.js CHANGED
@@ -1,11 +1,29 @@
1
- export { delimiter, posix, win32 } from "./pathkit-impl/args-impl.js";
2
- export {
1
+ import { normalizeWindowsPath } from "./pathkit-impl/_internal.js";
2
+ import {
3
+ sep,
4
+ normalize,
5
+ join,
6
+ resolve,
7
+ normalizeString,
8
+ isAbsolute,
9
+ toNamespacedPath,
10
+ extname,
11
+ relative,
12
+ dirname,
13
+ format,
14
+ basename,
15
+ parse
16
+ } from "./pathkit-impl/_path.js";
17
+ import { delimiter, posix, win32 } from "./pathkit-impl/args-impl.js";
18
+ import {
3
19
  normalizeAliases,
4
20
  resolveAlias,
5
21
  reverseResolveAlias,
6
22
  filename
7
23
  } from "./pathkit-impl/args-utils.js";
8
- export { normalizeWindowsPath } from "./pathkit-impl/_internal.js";
24
+ export { delimiter, posix, win32 };
25
+ export { normalizeAliases, resolveAlias, reverseResolveAlias, filename };
26
+ export { normalizeWindowsPath };
9
27
  export {
10
28
  sep,
11
29
  normalize,
@@ -20,4 +38,28 @@ export {
20
38
  format,
21
39
  basename,
22
40
  parse
23
- } from "./pathkit-impl/_path.js";
41
+ };
42
+ const pathkit = {
43
+ delimiter,
44
+ posix,
45
+ win32,
46
+ normalizeAliases,
47
+ resolveAlias,
48
+ reverseResolveAlias,
49
+ filename,
50
+ normalizeWindowsPath,
51
+ sep,
52
+ normalize,
53
+ join,
54
+ resolve,
55
+ normalizeString,
56
+ isAbsolute,
57
+ toNamespacedPath,
58
+ extname,
59
+ relative,
60
+ dirname,
61
+ format,
62
+ basename,
63
+ parse
64
+ };
65
+ export default pathkit;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
- "description": "@reliverse/pathkit delivers slash-consistent, cross-platform path manipulation that just works. Ensures predictable POSIX (/) separators everywhere, simplifying your code and eliminating OS-specific pathing issues.",
2
+ "description": "@reliverse/pathkit is a slashconsistent, crossplatform path manipulation—drop‑in for node:path, always POSIX forward slash. @reliverse/pathkit-plus is a utility library which extends the core library with a set of functions for manipulating file paths.",
3
3
  "license": "MIT",
4
4
  "name": "@reliverse/pathkit",
5
5
  "type": "module",
6
- "version": "1.0.0",
6
+ "version": "1.0.2",
7
7
  "dependencies": {},
8
8
  "devDependencies": {},
9
9
  "exports": {