github.com/Keffin/validator_crystal
main / published May 20, 2021 / repository
validator_crystal
The validator_crystal library is a String validation library. Inspired a lot by the Validator library for NodeJS.
TODO:
- Implement a bunch of validation methods
- Implement sanitization methods
- Write tests instead of just executing test inputs locally
Installation
-
Add the dependency to your
shard.yml:dependencies: validator_crystal: github: your-github-user/validator_crystal -
Run
shards install
Usage
require "validator_crystal"
TODO: Write usage instructions here
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/your-github-user/validator_crystal/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
Contributors
- Kevin Alemi - creator and maintainer
API
- ValidatorCrystal
Checks if a given string only contains of letters [a-zA-Z]