read-pkg-up simplifies finding and reading the closest package.json file upward in the directory tree. Starting from a given directory, it traverses upwards until it locates the package.json. Useful for CLI tools or modules requiring project metadata. It provides a convenient API, returning the parsed JSON content and its file path. Offers flexibility through options to configure the starting directory and customize the search behavior. Simplifies working with relative paths in complex project structures.
The read-pkg-up npm package had infrequent releases, with several months showing no new versions. Releases occurred sporadically between September 2015 and November 2023. More recently, releases have become less frequent, releasing periodically in 2021, 2022 and 2023, with none so far in 2024 and 2025. The latest version is 11.0.0, released in November 2023.
The npm package read-pkg-up saw fluctuating download numbers between March 2024 and August 2025, ranging from 113 million to 166 million. Downloads significantly increased in June and July 2025, peaking in June. September 2025's partial data suggests a similarly high download count, potentially exceeding past months.