stringpad
Version, currently master branch1 version
- master branchlatestAug 30, 2018
github.com/crystalrealm/stringpad
🏠 Microlibrary for string padding in Crystal.
0 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
stringpad:
github: crystalrealm/stringpad
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.26.0- License
- MIT
- Author
- Mark Molnar <molnarpw@gmail.com>
Dependencies
This version declares no dependencies.
README
# Stringpad
[](https://github.com/ellerbrock/open-source-badge/)
[](https://github.com/ellerbrock/open-source-badge/)
[](http://makeapullrequest.com)
[](https://travis-ci.com/crystalrealm/stringpad)
Microlibrary for quick and easy string padding.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
stringpad:
github: crystalrealm/stringpad
```
## Usage
```crystal
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
- [molnarmark](https://github.com/molnarmark) Mark Molnar - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Aug 30, 2018
- Crystal
0.26.0- Indexed
- yes
Dependents
Repository
github.com/crystalrealm/stringpad
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1