How to obtain case-exact path of a file in Node.js on Windows?
问题 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). 回答1: Platforms with case-INsensitive filesystems