Resolve a relative path against a root path with validation
Resolve the path of a module like `require.resolve()` but from a given path
Resolve the path of a module like `require.resolve()` but from the current working directory
A minimal path module to resolve Unix, Windows and URL paths alike.