Function: offsetFromRoot
โธ offsetFromRoot(fullPathToDir): string
Calculates an offset from the root of the workspace, which is useful for constructing relative URLs.
Examples:
1offsetFromRoot('apps/mydir/myapp/'); // returns "../../../"
2Parameters
| Name | Type | Description |
|---|---|---|
fullPathToDir | string | directory path |
Returns
string