{"id":18370159,"url":"https://github.com/docwhat/list_to_columns","last_synced_at":"2025-07-11T12:37:58.450Z","repository":{"id":36802012,"uuid":"41108837","full_name":"docwhat/list_to_columns","owner":"docwhat","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-15T20:20:19.000Z","size":27,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T17:43:13.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/docwhat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-20T17:12:33.000Z","updated_at":"2022-10-05T19:29:14.000Z","dependencies_parsed_at":"2022-09-04T04:10:31.800Z","dependency_job_id":null,"html_url":"https://github.com/docwhat/list_to_columns","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docwhat%2Flist_to_columns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docwhat%2Flist_to_columns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docwhat%2Flist_to_columns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docwhat%2Flist_to_columns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docwhat","download_url":"https://codeload.github.com/docwhat/list_to_columns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248289278,"owners_count":21078913,"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-11-05T23:36:43.418Z","updated_at":"2025-04-10T20:18:23.539Z","avatar_url":"https://github.com/docwhat.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build\nStatus](https://travis-ci.org/docwhat/list_to_columns.svg)](https://travis-ci.org/docwhat/list_to_columns)\n[![Coverage\nStatus](https://coveralls.io/repos/docwhat/list_to_columns/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/docwhat/list_to_columns?branch=master)\n[![Gem\nVersion](https://badge.fury.io/rb/list_to_columns.svg)](http://badge.fury.io/rb/list_to_columns)\n\nListToColumns\n=============\n\nHave a list of strings but want to display it in a compact column format?\n`ListToColumns` is the tool for the job!\n\nIt turns boring lists like:\n\n    Dedanim signally eyebright unpebbled ureterolithic boyishly\n\nor:\n\n     * Haidan\n     * Soleidae\n     * paleoanthropological\n     * Peba\n     * biaxillary\n     * preultimate\n     * convivialist\n     * amphistome\n     * shoaly\n     * cornloft\n\n...into glorious multi-columnar lists:\n\n    conventual     uranospinite  scallom\n    enantiopathia  biserially    Bogomil\n    scyphozoan     Addisonian    mislayer\n\nInstallation\n------------\n\nAdd this line to your application's Gemfile:\n\n``` ruby\ngem 'list_to_columns'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install list_to_columns\n\nUsage\n-----\n\n`ListToColumns.new \u003clist\u003e, [options]`\n\nOptions:\n\n-   `:indent` -- How much to indent the columns. Defaults to `0`.\n-   `:width` -- The width of the text to display. Defaults to `78`.\n-   `:space` -- The space between columns. Defaults to `2`.\n\n### Example\n\n``` ruby\nrequire 'list_to_columns'\n\nwords = %w(\n  antipyic\n  baccheion\n  conormal\n  diet\n  extracloacal\n  fadridden\n  germifuge\n  hovering\n  isomerical\n  jagrata\n  knuclesome\n  libidinal\n  myoclonic\n  nonunionism\n  overmarl\n  parochialization\n  quadriparous\n  radiotelegraph\n  sobby\n  tailpipe\n  undefectiveness\n  vintaging\n  wheaten\n  xanthydrol\n  yesso\n  zircofluoride\n)\n\nputs ListToColumns.new(words, width: 60, space: 3)\n```\n\nOutput:\n\n    antipyic           jagrata            sobby\n    baccheion          knuclesome         tailpipe\n    conormal           libidinal          undefectiveness\n    diet               myoclonic          vintaging\n    extracloacal       nonunionism        wheaten\n    fadridden          overmarl           xanthydrol\n    germifuge          parochialization   yesso\n    hovering           quadriparous       zircofluoride\n    isomerical         radiotelegraph\n\nDevelopment\n-----------\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake rspec` to run the tests. You can also run `bin/console` for an\ninteractive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and tags, and push the `.gem` file to\n[rubygems.org](https://rubygems.org).\n\nContributing\n------------\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/docwhat/list\\_to\\_columns.\n\nLicense\n-------\n\nThe gem is available as open source under the terms of the [MIT\nLicense](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocwhat%2Flist_to_columns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocwhat%2Flist_to_columns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocwhat%2Flist_to_columns/lists"}