{"id":16476354,"url":"https://github.com/softprops/treeline-scala","last_synced_at":"2025-10-27T16:31:24.939Z","repository":{"id":6712984,"uuid":"7958649","full_name":"softprops/treeline-scala","owner":"softprops","description":"Renders nested tree branches in unicode and ascii","archived":false,"fork":false,"pushed_at":"2014-05-10T20:00:03.000Z","size":176,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-09T09:41:57.187Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://softprops.github.com/treeline/","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softprops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-01T13:31:22.000Z","updated_at":"2016-01-03T20:52:06.000Z","dependencies_parsed_at":"2022-08-26T04:00:49.772Z","dependency_job_id":null,"html_url":"https://github.com/softprops/treeline-scala","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Ftreeline-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Ftreeline-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Ftreeline-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Ftreeline-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softprops","download_url":"https://codeload.github.com/softprops/treeline-scala/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219861023,"owners_count":16556008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T12:42:10.297Z","updated_at":"2025-10-27T16:31:24.628Z","avatar_url":"https://github.com/softprops.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# treeline\n\nA unicode tree renderer.\n    \n    ├─┬ ↑\n    │ └── ⬆\n    ├─┬ ⬆\n    │ └── ↑\n    └── ↑\n\n## install\n\n### using [ls](http://ls.implicit.ly/#installing)\n\n    ls-install treeline\n\n### using [sbt](http://www.scala-sbt.org/)\n\n    libraryDepdendencies += \"me.lessis\" %% \"treeline\" % \"0.1.0\"\n\n## usage\n\nTreeline exposes two objects `Trees` and `Branches`. A `Tree` is made of one or more `Branches` and a `Branch` is just a name to display and an optional list of `Branches`.\n\n```scala\nimport treeline._\nprintln(Tree()(Branch(\"foo\", Branch(\"bar\", Branch(\"baz\")), Branch(\"boom\"))))\n```\n\n    foo\n    ├─┬ bar\n    │ └── baz\n    └── boom\n\nYou can also render in ascii where unicode is not supported by calling the `ascii` method on a tree.\n\n```scala\nprintln(Tree().ascii(Branch(\"foo\", Branch(\"bar\", Branch(\"baz\")), Branch(\"boom\"))))\n```\n\nThis will render\n\n    foo\n    +-- bar\n    | `-- baz\n    `-- boom\n\nDoug Tangren (softprops) 2013\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Ftreeline-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftprops%2Ftreeline-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Ftreeline-scala/lists"}