path-type is a Node.js utility that checks whether a given filesystem path is a file, directory, or symlink. It provides both async and synchronous functions (such as isFile, isDirectory, and isSymlink) returning boolean results, which is useful when you need to validate path types before operating on them.
Project status
- Actively maintained in the sense that there have been recent GitHub updates, with the last upstream push on 2026-02-02, but there has not been a published package update since 2024-07-26 (v6.0.0).
- Apparent update cadence is quiet, with major updates occurring infrequently (v4.0.0 in 2019, v5.0.0 in 2021, v6.0.0 in 2024), and no evidence of frequent incremental “updates” in the last couple of years.
AI summary generated
Recent updates
v6.0.0
Release v6.0.0 primarily targets a platform upgrade, raising the minimum supported Node.js version. The code changes are small, but the package metadata and module import style were updated alongside CI, tests, and dev tooling.
Breakingv5.0.0
v5.0.0 migrates path-type to a pure ESM package and raises the minimum supported Node.js version to 12. The runtime implementation is refactored to use fs.promises, and the package metadata is updated accordingly.
Breakingv4.0.0
v4.0.0 introduces a breaking API rename where exported methods now use an `is` prefix. It also raises the minimum supported Node.js version to 8 and adds TypeScript definitions for better type support.
BreakingFeatures