module-details-from-path
Resolve npm package details, like name and base path, given an absolute path to a file inside a package
normalize-path
Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
is-relative
Returns `true` if the path appears to be relative.