I\'m developing on windows, but need to know how to convert a windows path (with backslashes \\) into a POSIX path with forward slashes (/)?
\\
/
const winPath = 'C:\\repos\\vue-t\\tests\\views\\index\\home.vue' const posixPath = winPath.replace(/\\/g, '/').slice(2) // Now posixPath = '/repos/vue-t/tests/views/index/home.vue'