move-path
Move path to destination folder.
Install
$ yarn add move-path
Usage
Handles both relative and absolute from
and to
and returns an absolute destination path.
// /absolute/build/baz/foo/bar/index.js // /absolute/build/baz/foo/bar/ // /absolute/src/foo/bar/index.js // /absolute/src/foo/bar/ // /build/foo/bar/index.js // /absolute/src/foo/bar/index.js