scala-pretty

1.0.1 • Public • Published

scala-pretty

Pretty-prints a Scala toString() result with newlines and indentation.

Note that it's not syntax aware at all.

Installation

npm install -g scala-pretty

Example

scala-pretty "Catalog(Map(GROUP -> Group(Group,List(NodeReference(LINK))), LINK -> Link(Link,http://foo)))"

Results in:

Catalog(
  Map(
    GROUP -> Group(
      Group,
      List(
        NodeReference(
          LINK
        )
      )
    ),
    LINK -> Link(
      Link,
      http://foo
    )
  )
)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i scala-pretty

      Weekly Downloads

      3

      Version

      1.0.1

      License

      ISC

      Last publish

      Collaborators

      • ghengeveld