What’s a good name for something that takes a JS value and turns it into a pretty printed string. Just “format” is ambiguous, so is “value-format”, “pretty-print”, “stringify”, “inspect” etc. Any suggestions? (Doesn’t need to be an available npm package name)
I don’t really like “pretty-format” because it doesn’t describe what data it’s actually formatting
-
-
sebastians-module-for-values-that-cant-print-good-and-want-to-learn-to-look-good-in-other-places-too
- End of conversation
New conversation -
-
-
Function name alone is not enough to describe everything. Arguments should also have precise naming and DocBlock description.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
‘pretty-format-primitive’
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 