Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michaelchadwick/countr

Count the number of characters in a string
https://github.com/michaelchadwick/countr

character count ruby rubygem utility

Last synced: about 2 months ago
JSON representation

Count the number of characters in a string

Awesome Lists containing this project

README

        

# Countr

[![Gem Version](https://badge.fury.io/rb/countr.svg)](http://badge.fury.io/rb/countr)

A simple RubyGem that counts the number of characters in a string and displays it.

*NOTE:* Make sure to escape any quotes (`\\'`) or double-quotes (`\\"`) (if'n your string has something quoted, for example) so that they are included in the overall count.

## Usage

`countr STRING`

Examples:

* Tweet length:
`$ countr \@username and then I said \"OMG this new rubygem called \'countr\' is super-cool!\"`
* Arbitrary sentence:
`$ countr Sundry items have a way of creeping into your subconscious, whether your mind lingered on them for long or not.`

## Contributing

Bug reports and pull requests are welcome on GitHub at .

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).