Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/michaelchadwick/countr
- Owner: michaelchadwick
- License: mit
- Created: 2015-06-29T18:01:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-09-08T03:12:34.000Z (over 1 year ago)
- Last Synced: 2024-03-15T02:50:50.850Z (10 months ago)
- Topics: character, count, ruby, rubygem, utility
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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).