Home > @wixc3/fs-utils > rebaseRelativeModulePath
Signature:
export declare function rebaseRelativeModulePath(filePath: string, modulePath: string): string;
| Parameter | Type | Description |
|---|---|---|
| filePath | string | full posix path of the file which about to import from `modulePath` |
| modulePath | string | full posix path of the imported module |
Returns:
string
the relative posix path from filePath to modulePath