smooth out differences between stat and lstat
npm install superstat
yarn add superstat
pnpm add superstat
bun add superstat
Smooth out differences between stat and lstat.
stat
lstat
lstat.isDirectory()
false
stat.isDirectory()
stat.isSymbolicLink()
npm i superstat
Create symlink to root directory:
ln -s / hello
const stat = await superstat('./hello'); stat.isDirectory() // returns true stat.isSymbolicLink() // returns true
MIT