Back to Explore

unjs/pathe

GitHub
2 watchersOpen source

Last release:

Pathe (unjs/pathe) is a drop-in replacement for Node.js’s built-in path module that normalizes paths to use forward slashes consistently across operating systems, including environments like browsers. It provides identical exports to Node’s path module and adds extra path-related utilities via a pathe/utils subpath.

Project status

  • The unjs/pathe source appears to still be under active development, with an upstream push recorded today (2026-06-09), but published updates have been infrequent since the last tagged update (v2.0.3 on 2025-02-11).
  • Update cadence looks quiet for users, with about 16 months between v2.0.3 and the last known tagged updates, suggesting maintenance is ongoing but release frequency is low.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.0.3

    v2.0.3 includes a small build-related fix and a set of CI and dependency/tooling updates. Code changes also modify how the zeptomatch dependency is re-exported during the build, which may affect consumer import paths.

    Breaking
  • v2.0.2

    v2.0.2 contains a small set of path behavior fixes, focused on allowing `format` to be called with partial argument objects, and improving `extname` handling for inputs ending with a dot. The release also tightens TypeScript checking. Code changes additionally include some typing/export refactors and an extra runtime safety fix not mentioned in the release notes.

  • v2.0.1

    v2.0.1 primarily addresses an issue around mixed posix and win32 namespaces. The fix is implemented by changing how `posix` and `win32` exports are constructed, introducing namespace-specific delimiter behavior and support for nested namespace access (for example, `posix.win32.posix`).

    Breaking
  • v2.0.0

    v2.0.0 expands pathe's Node.js path compatibility by adding new exports (posix, win32, default, and new utils) and updating Windows/POSIX normalization behaviors. The release notes document several breaking behavioral fixes (delimiter, parse root handling, and UNC/join behavior), but the actual diff also shows additional implementation changes that could affect edge-case behavior and module import shapes.

    BreakingFeatures
  • v1.1.2

    v1.1.2 focuses on bug fixes related to filesystem path handling, especially for edge cases on Windows and around relative path calculations. It improves alias and relative path resolution by normalizing inputs such as root paths, trailing slashes, and differing drive letter casing.