require_resolve():
  - rewrite to allow non-installed modules
  - document
  - add tests