get-relative-path
Work out what the relative path to get from from
to to
is.
i.e. Starting at from
, what path would lead us to to
.
Similar to Node.js's path.relative() but works outside the context of a filesystem, and assumes all paths are POSIX-style. So this also works for URL pathnames.
npm install get-relative-path
const getRelativePath = ; console;// ../../impl/bbb console;// ../../impl/bbb console// ../../impl/bbb