method default.PlatformPath.relative
Jump to headingPlatformPath.relative(from: string,to: string,): stringSolve the relative path from {from} to {to} based on the current working directory. At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
Parameters Jump to heading
Jump to headingfrom: stringJump to headingto: stringReturn Type Jump to heading
stringThrows Jump to heading
TypeErrorif either from or to is not a string.