Back to Explore

sindresorhus/resolve-from

GitHub
2 watchersOpen source

Last release:

Resolve-from helps you find the filesystem path of a module similarly to Node.js require.resolve(), but using a specified starting directory. It throws an error when the module can’t be found (or returns undefined via resolveFrom.silent). Useful when you need deterministic module path resolution relative to a particular directory.

Project status

  • Quiet maintenance mode, no recent evidence of active upkeep, the last upstream push was 2021-01-23, and the most recent listed update is v5.0.0 from 2019, which is multiple years ago relative to 2026-06-09.
  • Apparent cadence has effectively stopped, updates were released in 2017-2019, with a long gap after v5.0.0 and no new updates indicated in the provided history.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v5.0.0

    v5.0.0 introduces a TypeScript definition and changes runtime behavior for missing modules. It also requires a newer Node.js version, and it modifies the return value when a module cannot be found.

    BreakingFeatures
  • v4.0.0

    Release v4.0.0 contains no provided release notes. The code diff shows functional changes centered on how `resolve-from` determines the base directory for module resolution, plus some repo/tooling configuration updates.

    BreakingFeatures
  • v3.0.0

    This release is v3.0.0, but the publisher did not provide any release notes describing changes. As a result, developers should assume the upgrade may include breaking or behavior changes and review the code diff and changelog history before upgrading.