UNPKG

jsm-treeify

Version:

A library to display JavaScript objects as colorized, tree-like structures in the console.

11 lines (10 loc) 412 B
import { type Options } from './colorize-tree'; export type JsmTreeifyOptions = Options; /** * Transforms an object into a colored, tree-like string representation for console output. * * @param obj - The object to display as a tree. * @returns A formatted string representation of the object as a tree. */ declare const jsmTreeify: (obj: any, opt?: JsmTreeifyOptions) => string; export default jsmTreeify;