I have a path, let's say C:\temp\something.js
and I want to get case-exact version of the path on Windows - so if there is C:\Temp\someThing.js
stored on disk, I would like to get this value (path).
How can I get from the former path the later one in Node.js?
I have already gone through FS API (https://nodejs.org/api/fs.html) and I have not found anything useful (namely fs.realpathSync
, fs.statSync
, fs.accessSync
did not return what I need).
As of Node 9, fs.realpathSync.native
appears to do the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With