Proposal to try Dumper for Node.js applications #303
thetutlage
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@thetutlage this looks like it would make a great addition! The code for pretty printing was repurposed from a jest internal package originally. I'll definitely look into this. Thanks! 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I see you guys have rolled out a custom implementation for pretty printing values using pretty-format, which returns a CLI output and then converts it to HTML using regular expressions.
I have been in the same boat for a while with object-inspect and decided to create something from scratch that is more flexible with the output by separating the parsing and the printing logic into two different cycles.
I recently created @poppinss/dumper (inspired by Symfony's VarDumper), which comes with inbuilt HTML and CLI formatters. You can also use its low-level parser API to create tokens and then print them using a custom formatter. You can even write these formatters using a different language (other than JavaScript).
I decided to share it here to see if you would like to give the project a try :)
Beta Was this translation helpful? Give feedback.
All reactions