resolve-from

Resolve the path of a module like `require.resolve()` but from a given path

resolve-cwd

Resolve the path of a module like `require.resolve()` but from the current working directory

import-from-esm

Import a module like with require() but from a given path (for ESM)