{"id":16499319,"url":"https://github.com/tpapp/indentwrappers.jl","last_synced_at":"2025-03-01T18:20:21.830Z","repository":{"id":51321175,"uuid":"168520978","full_name":"tpapp/IndentWrappers.jl","owner":"tpapp","description":"Wrapper type for indentation management for plain text printing.","archived":false,"fork":false,"pushed_at":"2021-05-15T14:35:58.000Z","size":7,"stargazers_count":2,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T16:20:11.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-31T12:24:23.000Z","updated_at":"2024-11-22T09:38:23.000Z","dependencies_parsed_at":"2022-09-14T22:51:24.209Z","dependency_job_id":null,"html_url":"https://github.com/tpapp/IndentWrappers.jl","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/tpapp%2FIndentWrappers.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FIndentWrappers.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FIndentWrappers.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FIndentWrappers.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpapp","download_url":"https://codeload.github.com/tpapp/IndentWrappers.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241404916,"owners_count":19957730,"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-11T14:52:09.039Z","updated_at":"2025-03-01T18:20:21.799Z","avatar_url":"https://github.com/tpapp.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IndentWrappers\n\n![Lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)\u003c!--\n![Lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-stable-green.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-retired-orange.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-archived-red.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-dormant-blue.svg) --\u003e\n[![Build Status](https://travis-ci.com/tpapp/IndentWrappers.jl.svg?branch=master)](https://travis-ci.com/tpapp/IndentWrappers.jl)\n[![codecov.io](http://codecov.io/github/tpapp/IndentWrappers.jl/coverage.svg?branch=master)](http://codecov.io/github/tpapp/IndentWrappers.jl?branch=master)\n\n## Usage\n\n`indent(io, n)` returns an `::IO` object that writes `n` spaces after each `\\n`.\n\n`indent`s can be chained, use in a functional way. It is recommended that implementations of `Base.show` using this package never close with a newline.\n\nExample:\n\n```julia\nstruct Foo\n    contents\nend\n\nfunction Base.show(io::IO, foo::Foo)\n    print(io, \"This is a Foo with the following contents:\")\n    let inner_io = indent(io, 4)\n        for elt in foo.contents\n            print(inner_io, '\\n', elt)\n        end\n    end\nend\n```\n\nthen\n\n```julia\njulia\u003e Foo(['a', 42, \"string\"])\nThis is a Foo with the following contents:\n    a\n    42\n    string\n```\n\n## Similar packages\n\n- [IOIndents.jl](https://github.com/KristofferC/IOIndents.jl), which inspired part of the implementation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Findentwrappers.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpapp%2Findentwrappers.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Findentwrappers.jl/lists"}