GitShow/sindresorhus/path-type
sindresorhus

path-type

Check if a path is a file, directory, or symlink

by sindresorhus
Star on GitHubForknpm

JavaScript

80 stars15 forks7 contributorsQuiet · 6mo agoSince 2015v6.0.0MIT

Meet the team

See all 7 on GitHub →
sindresorhus
sindresorhus19 contributions
coreyfarrell
coreyfarrell3 contributions
arthurvr
arthurvr1 contribution
BendingBender
BendingBender1 contribution
kevva
kevva1 contribution
lgrammel
lgrammel1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript87.1%
TypeScript12.9%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
outslept
Consider archiving in favor of Node.js fs methodsClosedIssue

The package currently provides methods to check path types: / / / Node.js has had these capabilities natively since a really long time through the and modules, and they've been stable for a while. Given that all Node.js versions before 16.x are now EOL (End-of-Life), developers can safely use these native methods. Native implementation provides the same functionality and more: Given these facts, perhaps, adding some type of notice, suggesting users migrate to native Node.js methods for modern projects would be benefitial?

outslept · 6mo ago
OmgImAlexis
v5.0.0 is incompatible with ts-nodeClosedIssue

I'm hitting a similar issue to https://github.com/TypeStrong/ts-node/issues/155#issuecomment-570120923 with and while importing this in one of the functions I'm testing. If there's no fix feel free to close this. I figured I couldn't hurt to open and at least others will now be able to find this.

OmgImAlexis · 4y ago
AlexMeah
Gracefully handle invalid pathsMergedPR

This adds graceful handling of invalid paths. I think is the correct response rather than throwing as the file is not of that type if it cannot be read. Context: This is affecting Vite due to their use of virtual modules, which they signify by using in the path.

AlexMeah · 4y ago
Structured data for AI agents

Repository: sindresorhus/path-type. Description: Check if a path is a file, directory, or symlink Stars: 80, Forks: 15. Primary language: JavaScript. Languages: JavaScript (87.1%), TypeScript (12.9%). License: MIT. Latest release: v6.0.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 6mo ago. Community health: 85%. Top contributors: sindresorhus, coreyfarrell, arthurvr, BendingBender, kevva, lgrammel, Richienb.

·@ofershap

Replace github.com with gitshow.dev