Overview of neotraverse features
mainneotraverse is a high-performance, zero-dependency library designed for traversing and transforming objects. It is designed as a faster, leaner, and more secure alternative to traverse.
Key features include:
- Tree-shakeable: Utility-first named imports allow for minimal bundle sizes (~2 KB brotli for
forEach, up to ~6 KB for the full functional API). - Hardened Security: Protects against prototype pollution and injection on untrusted input, with an optional
maxDepthDoS guard. - High Performance: The functional API provides significantly higher throughput and lower heap usage compared to
traverse. - TypeScript-first: Built-in type definitions (no need for
@types/traverse). - Environment Support: ESM-first with legacy ES2015 CJS/ESM support. Works in Node, Deno, and browsers.