{"id":22980918,"url":"https://github.com/rubyworks/ansi","last_synced_at":"2025-04-12T18:42:38.791Z","repository":{"id":656817,"uuid":"299555","full_name":"rubyworks/ansi","owner":"rubyworks","description":"Set of ANSI Code based classes and modules for Ruby","archived":false,"fork":false,"pushed_at":"2023-11-08T16:53:57.000Z","size":1857,"stargazers_count":117,"open_issues_count":12,"forks_count":33,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-24T12:59:24.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubyworks.github.com/ansi","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubyworks.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2009-09-07T01:38:18.000Z","updated_at":"2024-10-22T22:41:31.000Z","dependencies_parsed_at":"2024-06-18T12:38:25.512Z","dependency_job_id":"f57494b6-7967-4393-ad55-96b2a5a3d2ef","html_url":"https://github.com/rubyworks/ansi","commit_stats":{"total_commits":243,"total_committers":6,"mean_commits":40.5,"dds":"0.020576131687242816","last_synced_commit":"17002348d45ce9298a1a4017dc43d3cf65151bd4"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fansi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fansi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fansi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fansi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyworks","download_url":"https://codeload.github.com/rubyworks/ansi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232262301,"owners_count":18496432,"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-12-15T01:46:10.690Z","updated_at":"2025-01-19T06:05:20.832Z","avatar_url":"https://github.com/rubyworks.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ANSI\n\n[HOME](http://rubyworks.github.com/ansi) \u0026middot;\n[API](http://rubydoc.info/gems/ansi/frames) \u0026middot;\n[ISSUES](http://github.com/rubyworks/ansi/issues) \u0026middot;\n[SOURCE](http://github.com/rubyworks/ansi)\n\n[![Build Status](https://secure.travis-ci.org/rubyworks/ansi.png)](http://travis-ci.org/rubyworks/ansi)\n\n\u003cbr/\u003e\n\nThe ANSI project is a collection of ANSI escape code related libraries\nenabling ANSI code based colorization and stylization of output.\nIt is very nice for beautifying shell output.\n\nThis collection is based on a set of scripts spun-off from\nRuby Facets. Included are Code (used to be ANSICode), Logger,\nProgressBar and String. In addition the library includes\nTerminal which provides information about the current output\ndevice.\n\n\n## Features\n\n* ANSI::Code provides ANSI codes as module functions.\n* String#ansi makes common usage very easy and elegant.\n* ANSI::Mixin provides an alternative mixin (like +colored+ gem).\n* Very Good coverage of standard ANSI codes.\n* Additional clases for colorized columns, tables, loggers and more.\n\n\n## Synopsis\n\nThere are a number of modules and classes provided by the ANSI\npackage. To get a good understanding of them it is best to pursue \nthe [QED documents](http://github.com/rubyworks/ansi/tree/master/qed/)\nor the [API documentation](http://rubyworks.github.com/ansi/api/index.html).\n\nAt the heart of all the provided libraries lies the ANSI::Code module\nwhich defines ANSI codes as constants and methods. For example:\n\n    require 'ansi/code'\n\n    ANSI.red + \"Hello\" + ANSI.blue + \"World\"\n    =\u003e \"\\e[31mHello\\e[34mWorld\"\n\nOr in block form.\n\n    ANSI.red{ \"Hello\" } + ANSI.blue{ \"World\" }\n    =\u003e \"\\e[31mHello\\e[0m\\e[34mWorld\\e[0m\"\n\nThe methods defined by this module are used throughout the rest of\nthe system.\n\n\n## Installation\n\n### Bundler\n\nAdd the usual `gem` line to your project's `Gemfile`.\n\n    gem 'ansi'\n\nAnd run then `bundle` command.\n\n### RubyGems\n\nTo install with RubyGems simply open a console and type:\n\n    $ sudo gem install ansi\n\n### Setup.rb (not recommended)\n\nLocal installation requires Setup.rb (gem install setup),\nthen [download](http://github.com/rubyworks/ansi/download) the tarball package and type:\n\n    $ tar -xvzf ansi-1.0.0.tgz\n    $ cd ansi-1.0.0\n    $ sudo setup.rb all\n\nWindows users use 'ruby setup.rb all'.\n\n\n## Release Notes\n\nPlease see HISTORY.md file.\n\n\n## License \u0026 Copyrights\n\nCopyright (c) 2009 Rubyworks\n\nThis program is redistributable under the terms of the *FreeBSD* license.\n\nSome pieces of the code are copyrighted by others.\n\nSee LICENSE.txt and NOTICE.md files for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fansi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyworks%2Fansi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fansi/lists"}