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.
ramda
A practical functional library for JavaScript programmers.
resolve-dir
Resolve a directory that is either local, global or in the user's home directory.
is-directory
Returns true if a filepath exists on the file system and it's directory.
unixify
Convert Windows file paths to unix paths.