_ _
| | | |
__| | ___ _ __ ___| |_ _ __ ___ ___ _ __
/ _` |/ _ \ '_ \ / _ \ __| '_ ` _ \ / _ \ '_ \
| (_| | __/ | | | __/ |_| | | | | | __/ | | |
\__,_|\___|_| |_|\___|\__|_| |_| |_|\___|_| |_|
useful micro check library for Crystal Lang.
Add this to your application's shard.yml
:
dependencies:
denetmen:
github: izniburak/denetmen
require "denetmen"
"[email protected]".email? # true
"crystal-lang.com".domain? # true
"http://crystal-lang.com/".url? # true
# and more...
- email?
- domain?
- url?
- ipv4?
- ipv6?
- mac_address?
- hex_color?
- hex?
- alpha?(locale = "en-US")
- alphanum?(locale = "en-US")
- numeric?
- md5?
- base64?
- lower?
- upper?
- slug?
- time_string?
- credit_card?
- phone?(locale = "en-US")
- affirmative?
- positive?
- negative?
- zero?
- div?(n)
- above?(n)
- below?(n)
- Fork it ( https://github.com/izniburak/denetmen/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
- izniburak İzni Burak Demirtaş - creator, maintainer