Skip to main content

path-ts

Isomorphic type-safe path utilities.

path-ts is a PathBuilder for filesystem and URL paths whose segments are checked by the type system. The same builder runs in Node, Deno, workers and the browser.

npm packagepath-ts
Source codegithub.com/sister-software/path-ts
PublisherNirrius, LLC, doing business as Sister Software

What it does​

  • Joins, resolves and relativizes paths with the result type carried through each call.
  • Exposes one API over POSIX, Windows and URL path rules.
  • Has no runtime dependencies.