isaacs / isexe

Minimal module to check if a file is executable.
ISC License
48 stars 17 forks source link

sync method throws exception starting nodejs v14 #26

Closed reajuria closed 1 year ago

reajuria commented 3 years ago

https://github.com/isaacs/isexe/blob/10f8be491aab2e158c7e20df64a7f90ab5b5475c/mode.js#L13

Hi @isaacs it is possible to add { throwIfNoEntry: false } on statSync options to keep existing behavior?

Please have a look on statSync nodejs v14 docs