mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-09-28 06:55:25 +00:00
8 lines
189 B
JavaScript
8 lines
189 B
JavaScript
// @flow
|
|
import path from 'path';
|
|
import url from 'url';
|
|
|
|
export default function relativeUrl(from: string, to: string): string {
|
|
return url.format(url.parse(path.relative(from, to)));
|
|
}
|