superstat
v2.0.3
Published
smooth out differences between stat and lstat
Downloads
1,475
Readme
Superstat

Smooth out differences between stat and lstat.
Why?
- Symbolic link stat returned by
lstat.isDirectory()is alwaysfalse. - To know if a link is a directory we should call
stat.isDirectory(). stat.isSymbolicLink()is always false.
Install
npm i superstatExample
Create symlink to root directory:
ln -s / helloconst stat = await superstat('./hello');
stat.isDirectory()
// returns
true
stat.isSymbolicLink()
// returns
trueLicense
MIT
