{"id":16881547,"url":"https://github.com/benbjohnson/opus","last_synced_at":"2025-06-20T09:05:09.974Z","repository":{"id":12669807,"uuid":"15341764","full_name":"benbjohnson/opus","owner":"benbjohnson","description":"Command line utility for printing columnized code.","archived":false,"fork":false,"pushed_at":"2013-12-20T17:16:24.000Z","size":116,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T10:55:05.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/benbjohnson.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-12-20T15:34:21.000Z","updated_at":"2019-08-13T15:32:18.000Z","dependencies_parsed_at":"2022-09-15T18:12:25.523Z","dependency_job_id":null,"html_url":"https://github.com/benbjohnson/opus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/benbjohnson/opus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fopus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fopus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fopus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fopus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benbjohnson","download_url":"https://codeload.github.com/benbjohnson/opus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benbjohnson%2Fopus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260915857,"owners_count":23082036,"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-13T16:03:28.437Z","updated_at":"2025-06-20T09:05:04.958Z","avatar_url":"https://github.com/benbjohnson.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Opus\n\nOpus is a tool for printing off source code. I know, that's a weird concept. But sometimes if I am porting a library to a different language it helps me to have a physical copy. That's where opus comes in.\n\nSince code is typically taller (1000s of lines) than it is wide (~80 chars), Opus columnizes the code so it fits on a page better. There are two reasons for this:\n\n1. It's not cool to print out a shit ton of paper.\n\n2. Spacial locality can be more important than readability.\n\nWhen I think of source code, I relate different parts based on where it's physically located in a source file. If I can get more lines on a page then I can relate source lines within a page instead of across pages.\n\n\n## Usage\n\nInstalling Opus is pretty easy once you have Ruby 1.9+ installed:\n\n```sh\n$ gem install opus\n```\n\nThen you can run Opus across your source files:\n\n```sh\n$ opus -o out.pdf src/*.c\n```\n\n\n## Options\n\nThe options for Opus are fairly limited but feel free to send pull requests with new features:\n\n```\n-c NUM, --columns NUM \n    The number of columns per page.\n        \n-o FILE, --output FILE \n    The name of the output file.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenbjohnson%2Fopus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenbjohnson%2Fopus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenbjohnson%2Fopus/lists"}