aesthetify.cr v0.1.0

Crystal port of a Ruby gem that lets you transform ASCII text into fullwidth text of 2 distinct flavors: regular Fullwidth and AESTHETIC

aesthetify

GitHub release Build Status

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.

Installation

Add this to your application's shard.yml:

dependencies:
  aesthetify:
    github: TheAssailant/aesthetify.cr

Usage

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

Contributing

  1. Fork it ( https://github.com/TheAssailant/aesthetify.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

aesthetify.cr

Owner
Statistic
  • 3
  • 0
  • 0
  • 0
  • 0
  • over 4 years ago
  • April 4, 2018
License

MIT License

Links
Synced at

Thu, 16 May 2024 08:31:44 GMT

Languages