{"library":"ast-monkey-traverse","type":"library","category":null,"description":"ast-monkey-traverse is a utility library designed for traversing Abstract Syntax Trees (ASTs) and general JavaScript object/array structures recursively. The current stable version is 4.1.3. As part of the Codsen monorepo, it receives regular updates and maintenance. Its core functionality offers a simple API, `traverse`, which allows users to visit each node in a data structure, providing access to the current key, value, and an internal object containing contextual information like the current path in object-path notation. A key differentiator is its clear distinction in the callback for object keys/values versus array indices, and its explicit focus on pure ESM since version 3.0.0, which streamlined its module architecture. It also provides built-in TypeScript types, enhancing developer experience for type-safe applications.","language":"javascript","status":"active","version":"4.1.3","tags":["javascript","ast","by","delete","drop","from","helper","html","key","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ast-monkey-traverse","imports":["import { traverse } from 'ast-monkey-traverse'","import type { Callback } from 'ast-monkey-traverse'","import type { TraverseResult } from 'ast-monkey-traverse'"]},{"cmd":"yarn add ast-monkey-traverse","imports":[]},{"cmd":"pnpm add ast-monkey-traverse","imports":[]}],"homepage":"https://codsen.com/os/ast-monkey-traverse","github":"https://github.com/codsen/codsen","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ast-monkey-traverse","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/ast-monkey-traverse/compatibility"}}