is-subdir

Return whether a directory is a subdirectory of another directory

path-join-safer

An alternative to path.join() that prevents unanticipated .. directory access due to user-input but allows .. access done programmatically and intentionally.