Dumper.js is a small JavaScript utility for pretty-printing or serializing JavaScript objects and data structures in a human-readable, tree-like format — useful for debugging, logging, or inspecting complex nested data. When you pass an object (or array, or nested structure) through dumper.js, it outputs a representation that shows keys, nested depth, and structure clearly, making it easier to understand what’s inside compared to default JSON dumps or console.log clutter. This can be especially helpful when dealing with large objects, deeply nested responses, or when you need to inspect something quickly without building custom serializers. The utility is minimal and straightforward: you import it, pass your data, and get the result. Because it doesn’t rely on heavy dependencies, it can be easily included in small scripts or bigger projects alike.
Features
- Pretty-printing of JavaScript objects/arrays with nested structure visualization
- Readable, human-friendly output rather than dense JSON or raw logs
- Works with nested and mixed data types (objects, arrays, primitives) seamlessly
- Lightweight, minimal dependencies — easy to include in small or large projects
- Useful for debugging, inspecting API responses, or logging state in development
- Compatible with Node.js and browser environments