{"library":"doc-path","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"4.1.3","tags":["javascript","document","json","json library","document path","doc-path","doc path","doc","path","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install doc-path","imports":["import path from 'doc-path';","import path from 'doc-path';\npath.evaluatePath(document, key);","import path from 'doc-path';\npath.setPath(document, key, value);"]},{"cmd":"yarn add doc-path","imports":[]},{"cmd":"pnpm add doc-path","imports":[]}],"homepage":"https://mrodrig.github.io/doc-path","github":"https://github.com/mrodrig/doc-path","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/doc-path","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/doc-path/compatibility"}}