find-package-json offers a robust and efficient way to locate package.json files, traversing upwards from a given starting directory. It provides a simple, promise-based API to search for the nearest package.json, stopping at the root directory or when a file is found. Ideal for tools and libraries needing to determine project root or access package metadata, it ensures consistent and reliable file location across diverse environments and directory structures. Think of it as smarter require.resolve('package.json').
The npm package find-package-json has seen very infrequent releases. Its initial release (v1.0.0) was in August 2015. There were single releases in April 2018 (v1.1.0) and February 2019 (v1.2.0). No releases have occurred since February 2019, and no releases occurred in the current year (2025) until August.
From March 2024 to September 2025, the npm package "find-package-json" experienced fluctuating download numbers. Starting at 1.6 million, downloads peaked in February 2025 at 6.8 million. There was a clear uptrend until early 2025 before leveling. September 2025's partial data shows a significant drop, potentially due to incomplete data for the month.