This javascript tool permit to easily convert an input path to DOS, Unix, or DOS with backslashes-escaped output path
Here is the usage as descibed by the tool itself :
Usage: path-convert 'path'
Methods: --escape : Escape backslashes in DOS --toUnix : Convert to Unix path --toDOS : Convert to DOS path
Examples: path-convert --toUnix 'C:\Users\Username\Documents' path-convert --toDOS '/home/user/documents'
Please ONLY use single-quotes when giving the path in arguments, as it work better like that.
I hope this can help you!
I used AI to debug and tune my code, but it's coded in majority by me, with some code from w3school, StackOverflow and the like. Made for Hackclub's minus-twelve YSWS