https://github.com/rubyworks/ansi
Set of ANSI Code based classes and modules for Ruby
https://github.com/rubyworks/ansi
Keywords from Contributors
rubygem crash-reporting sinatra activejob activerecord mvc
Last synced: about 5 hours ago
JSON representation
Repository metadata
Set of ANSI Code based classes and modules for Ruby
- Host: GitHub
- URL: https://github.com/rubyworks/ansi
- Owner: rubyworks
- License: bsd-2-clause
- Created: 2009-09-07T01:38:18.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2023-11-08T16:53:57.000Z (about 2 years ago)
- Last Synced: 2025-11-27T18:12:02.033Z (14 days ago)
- Language: Ruby
- Homepage: https://rubyworks.github.com/ansi
- Size: 1.77 MB
- Stars: 118
- Watchers: 3
- Forks: 33
- Open Issues: 12
- Releases: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.txt
README.md
ANSI
The ANSI project is a collection of ANSI escape code related libraries
enabling ANSI code based colorization and stylization of output.
It is very nice for beautifying shell output.
This collection is based on a set of scripts spun-off from
Ruby Facets. Included are Code (used to be ANSICode), Logger,
ProgressBar and String. In addition the library includes
Terminal which provides information about the current output
device.
Features
- ANSI::Code provides ANSI codes as module functions.
- String#ansi makes common usage very easy and elegant.
- ANSI::Mixin provides an alternative mixin (like +colored+ gem).
- Very Good coverage of standard ANSI codes.
- Additional clases for colorized columns, tables, loggers and more.
Synopsis
There are a number of modules and classes provided by the ANSI
package. To get a good understanding of them it is best to pursue
the QED documents
or the API documentation.
At the heart of all the provided libraries lies the ANSI::Code module
which defines ANSI codes as constants and methods. For example:
require 'ansi/code'
ANSI.red + "Hello" + ANSI.blue + "World"
=> "\e[31mHello\e[34mWorld"
Or in block form.
ANSI.red{ "Hello" } + ANSI.blue{ "World" }
=> "\e[31mHello\e[0m\e[34mWorld\e[0m"
The methods defined by this module are used throughout the rest of
the system.
Installation
Bundler
Add the usual gem line to your project's Gemfile.
gem 'ansi'
And run then bundle command.
RubyGems
To install with RubyGems simply open a console and type:
$ sudo gem install ansi
Setup.rb (not recommended)
Local installation requires Setup.rb (gem install setup),
then download the tarball package and type:
$ tar -xvzf ansi-1.0.0.tgz
$ cd ansi-1.0.0
$ sudo setup.rb all
Windows users use 'ruby setup.rb all'.
Release Notes
Please see HISTORY.md file.
License & Copyrights
Copyright (c) 2009 Rubyworks
This program is redistributable under the terms of the FreeBSD license.
Some pieces of the code are copyrighted by others.
See LICENSE.txt and NOTICE.md files for details.
Owner metadata
- Name: Rubyworks
- Login: rubyworks
- Email: rubyworks@outlook.com
- Kind: organization
- Description: Open Source Ruby Development
- Website: http://rubyworks.github.com
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/123975?v=4
- Repositories: 131
- Last ynced at: 2023-04-10T08:19:54.692Z
- Profile URL: https://github.com/rubyworks
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers metadata
Last synced: 1 day ago
Total Commits: 243
Total Committers: 6
Avg Commits per committer: 40.5
Development Distribution Score (DDS): 0.021
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| 7rans | t****e@g****m | 238 |
| grosser | g****l@g****m | 1 |
| deepj | d****a@g****m | 1 |
| Tomohiro Nishimura | t****8@g****m | 1 |
| Junegunn Choi | j****c@g****m | 1 |
| Chad Perrin | c****e@a****t | 1 |
Committer domains:
- apotheon.net: 1
Issue and Pull Request metadata
Last synced: 3 months ago
Total issues: 13
Total pull requests: 26
Average time to close issues: about 1 year
Average time to close pull requests: 12 months
Total issue authors: 10
Total pull request authors: 22
Average comments per issue: 1.69
Average comments per pull request: 1.65
Merged pull request: 4
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- trans (4)
- bootstraponline (1)
- helveticafire (1)
- grosser (1)
- joefallon (1)
- erasmux (1)
- bayleedev (1)
- eric-smartlove (1)
- wulftone (1)
- hrieke (1)
Top Pull Request Authors
- grosser (3)
- deepj (2)
- os97673 (2)
- penmanglewood (1)
- apotheon (1)
- fornellas (1)
- ghost (1)
- hurricup (1)
- pkarman (1)
- dphaener (1)
- jelder (1)
- Sixeight (1)
- eduardoj (1)
- aripollak (1)
- fcheung (1)
Top Issue Labels
- Consider (1)
Top Pull Request Labels
Package metadata
- Total packages: 2
-
Total downloads:
- rubygems: 193,726,391 total
- Total docker downloads: 58,284,026
- Total dependent packages: 171 (may contain duplicates)
- Total dependent repositories: 38,651 (may contain duplicates)
- Total versions: 30
- Total maintainers: 1
gem.coop: ansi
The ANSI project is a superlative collection of ANSI escape code related libraries eabling ANSI colorization and stylization of console output. Byte for byte ANSI is the best ANSI code library available for the Ruby programming language.
- Homepage: http://rubyworks.github.com/ansi
- Documentation: http://www.rubydoc.info/gems/ansi/
- Licenses: BSD-2-Clause
- Latest release: 1.5.0 (published almost 11 years ago)
- Last Synced: 2025-12-11T10:45:02.997Z (about 15 hours ago)
- Versions: 15
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 96,901,345 Total
- Docker Downloads: 29,142,013
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.086%
- Downloads: 0.258%
- Maintainers (1)
rubygems.org: ansi
The ANSI project is a superlative collection of ANSI escape code related libraries eabling ANSI colorization and stylization of console output. Byte for byte ANSI is the best ANSI code library available for the Ruby programming language.
- Homepage: http://rubyworks.github.com/ansi
- Documentation: http://www.rubydoc.info/gems/ansi/
- Licenses: BSD-2-Clause
- Latest release: 1.5.0 (published almost 11 years ago)
- Last Synced: 2025-12-10T03:31:03.666Z (2 days ago)
- Versions: 15
- Dependent Packages: 171
- Dependent Repositories: 38,651
- Downloads: 96,825,046 Total
- Docker Downloads: 29,142,013
-
Rankings:
- Dependent repos count: 0.167%
- Dependent packages count: 0.206%
- Downloads: 0.262%
- Docker downloads count: 0.903%
- Average: 1.874%
- Forks count: 4.646%
- Stargazers count: 5.056%
- Maintainers (1)
Dependencies
Score: 26.00443028390417
