Pollyfill for node.js path.parse
, parses a filepath into an object.
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.
Check if a path is a file, directory, or symlink