pub fn relative(from: &Path, to: &Path) -> String
Node’s path.relative for absolute, lexically resolved paths: the steps from from to to, "" when they are the same.
path.relative
from
to
""