You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Customizable indentation width. Perhaps with a Node flag or env variable as we probably won't want to modify the console.group API.
As a hacky workaround, I'm currently overwriting console.group:
It would be possible to add an option to the console constructor that allows to modify the indentation. Would this be sufficient? It would not have any impact on the global console in that case.
@rickyes please feel free to work on it. The constructor requires a new option (e.g., groupIndentation) and the kGroupIndent has to be changed accordingly (instead of using two spaces as done currently). Probably by adding another symbol property (e.g., kGroupIndentationWidth).
Activity
BridgeAR commentedon Apr 20, 2020
It would be possible to add an option to the console constructor that allows to modify the indentation. Would this be sufficient? It would not have any impact on the global console in that case.
privatenumber commentedon Apr 20, 2020
Yes! ty
rickyes commentedon Apr 20, 2020
Maybe use
' '. repeat(n), can I work on this ?BridgeAR commentedon Apr 20, 2020
@rickyes please feel free to work on it. The constructor requires a new option (e.g.,
groupIndentation) and thekGroupIndenthas to be changed accordingly (instead of using two spaces as done currently). Probably by adding another symbol property (e.g.,kGroupIndentationWidth).console: support console constructor groupIndentation option
console: support console constructor groupIndentation option
console: support console constructor groupIndentation option
console: support console constructor groupIndentation option