Given a base path and a file path this method will return a relative path if the file path includes the base path otherwise the full absolute file path is returned.
Optional
Options
The base path to create a relative path from filepath; default is CWD.
filepath
The path to solve from basepath.
basepath
A relative path based on basePath and filePath. (Unix)
basePath
filePath
Given a base path and a file path this method will return a relative path if the file path includes the base path otherwise the full absolute file path is returned.