getobject is a lightweight JavaScript library simplifying retrieval of nested object properties using a dot-notation string path. It gracefully handles potentially missing or undefined intermediate properties, returning a default value if the path is invalid, preventing common 'undefined' errors. The package helps write more robust and concise code when working with complex JavaScript objects, improving readability and maintainability by avoiding verbose conditional checks. It's ideal for configurations and dynamic data structures.
The npm package getobject was initially released in November 2013 (version 0.1.0). After that, it had no releases for several years. It had several versions released between March 2021 and May 2022 and no further releases since then. The last recorded month of activity was May 2022 (version 1.1.1), and as of August 30, 2025, there have been no releases in over three years.
getobject npm package downloads show fluctuations. From March 2024 to July 2025, downloads generally trended upwards, peaking in June/July 2025 around 3.7 million. August 2025 shows a decrease but is incomplete as of August 30, 2025.