Read-pkg efficiently reads a package.json file. It parses the JSON content and handles potential errors gracefully, throwing informative exceptions when issues arise like invalid JSON or missing file. It offers synchronous and asynchronous methods for reading, catering to different integration needs. Its small size makes it a lightweight dependency, and it supports modern Node.js versions. read-pkg simplifies package.json access, enhancing development workflows with clean error handling and flexible usage.
The npm package read-pkg has irregular release frequency. Initial releases occurred in 2015, with periods of inactivity followed by bursts of updates. Significant versions (2.0.0, 3.0.0, 4.0.0, 5.0.0, 6.0.0, 7.0.0, 8.0.0, 9.0.0) are interspersed among smaller patch releases. The most recent releases were in November 2023, with no releases in 2024 or 2025 so far.
read-pkg npm package downloads show significant growth. Downloads generally increased throughout 2024 peaking in November. In 2025 downloads remained high, peaking in June before decreasing until this month. Data for September 2025 is incomplete, showing a significantly lower number than previous months.