better-path-resolve
A better path.resolve() that normalizes paths on Windows
Installation
<npm|yarn|pnpm> add better-path-resolve
Usage
'use strict'
const betterPathResolve = require('better-path-resolve')
console.log(betterPathResolve('c:/src'))
//> C:\src