aesthetify.cr is a Crystal port of the Ruby gem aesthetify, which makes it simple to take any string and transform it for the AESTHETIC. In addition, it also makes creating Fullwidth text just as simple.
aesthetify.cr comes with regular methods just like its Ruby sibling, however it
omits the bang versions as there isn't support for String#replace
in Crystal.
Add this to your application's shard.yml
:
dependencies:
aesthetify:
github: TheAssailant/aesthetify.cr
require "aesthetify"
Using String#aesthetify:
text = "vaporwave".aesthetify
puts text
#=> VAPORWAVE
Using String#fullwidth:
text = "long boy".fullwidth
puts text
#=> long boy
Using concatenation:
text = "This is the " + "sad boys ".aesthetify + "club"
puts text
#=> This is the SAD BOYS club
- Fork it ( https://github.com/TheAssailant/aesthetify.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- TheAssailant - creator, maintainer