B
B
barkalov2020-02-02 16:40:24
Node.js
barkalov, 2020-02-02 16:40:24

What needs to be implemented in the node.js library that displays objects on the screen?

Hi people. I'm working on a javascript/typescript open-source library for outputting tree-like data to the terminal. For example JSON or any js objects in general. An analogue of the treeify library or console.log(JSON.stringify(data)), only better.

For example, like this:
5e36d31fa35b7262098306.png

Here is an online demo .

Scold? We need criticism, wishes, feature requests, feedback.

Approximate roadmap under the spoiler

- [x] Rich support for all javasctipt types, including `TypedArray`, `Map`, `Symbol` and `Error`.
- [x] Colors support for ANSI terminal output.
- [x] Color support for HTML output.
- [x] Deeply customizable stackable themes.
- [x] Collapsable long lists with ellipsis.
- [x] Gracefull fit and wrap long/multiline data into limited-width console. Tree stucture does not breaks!
- [ ] Word-wrap.
- [ ] Accurate Unicode width calucating for proper word-wrap.
- [ ] Color support for browser console via `console.log()` styling.
- [ ] Support for circular references.
- [ ] Support for endless iterators.
- [ ] Collapse long leaves with ellipsis.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question