Node path resolver

as suggested by @guybedford on twitter