It returns the resolved path Node would load for a given specifier without executing the module — useful for tooling, path introspection, or verifying resolution in monorepos.
Having a tech or coding interview? Check 29 JavaScript & Node.js interview questions.