node-modules-path reliably determines the absolute path to the nearest node_modules directory. This package programmatically finds the location where dependencies are installed, crucial for tools needing to access installed modules programmatically. Unlike relative paths, it resolves the correct node_modules location regardless of the current working directory, making it essential for build tools, linters, and test runners. It features cross-platform compatibility and robustness.
The npm package node-modules-path had initial releases in June 2015 (versions 1.0.0 and 1.0.1) and a single release (1.0.2) in October 2018. Since then, there have been no new versions published to npm. The package appears to be inactive, with no releases in the last several years.
Node-modules-path downloads show variability. After peaks in mid-2024, downloads generally decreased. A significant surge occurred in June 2025, followed by a decrease in August. September 2025 downloads are partial, but suggest a potential rebound compared to August.