Preparing for system design interviews?  Try bugzed.com →

Document Path Utilities

JSON →
library 4.1.3 ·javascript
verified Jun 17, 2026

doc-path is a JavaScript/TypeScript library designed for navigating and manipulating properties within JSON-like documents using simple, dot-separated path strings. It provides core functionalities like `evaluatePath` to retrieve values and `setPath` to assign values, even creating intermediate objects if the path doesn't exist. The current stable version is 4.1.3, indicating active maintenance and incremental feature enhancements. The library is primarily used in Node.js environments (requiring Node.js >=16) and ships with TypeScript types, ensuring robust usage in modern development workflows. A key differentiator is its ability to implicitly traverse arrays when a path segment matches a property name within array elements, returning an array of matched values, a feature often requiring explicit mapping in other object path libraries like Lodash. It also supports escaping dots within property names.

total hits 13
actors 4 distinct systems
last hit 19d ago AhrefsBot
GPTBot
4
Amazonbot
4
Script
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany