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
    )
  )
)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    3
  • 1.0.0
    0

Package Sidebar

Install

npm i scala-pretty

Weekly Downloads

3

Version

1.0.1

License

ISC

Last publish

Collaborators

  • ghengeveld