Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stringpad

Open Source Love Open Source Love PRs Welcome Build Status

Microlibrary for quick and easy string padding.

Installation

Add this to your application's shard.yml:

dependencies:
  stringpad:
    github: crystalrealm/stringpad

Usage

require "stringpad"
Stringpad.lpad("Hello World.", " ", 5)
#=>     Hello World.

Stringpad.rpad("Hello World.", " ", 5)
#=> Hello World.     |

Contributing

  1. Fork it (https://github.com/crystalrealm/stringpad/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

About

🏠 Microlibrary for string padding in Crystal.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages