Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/izniburak/denetmen
useful micro check library for Crystal Language.
https://github.com/izniburak/denetmen
checker crystal validator
Last synced: about 1 month ago
JSON representation
useful micro check library for Crystal Language.
- Host: GitHub
- URL: https://github.com/izniburak/denetmen
- Owner: izniburak
- License: mit
- Created: 2016-10-14T20:58:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-18T00:46:03.000Z (almost 8 years ago)
- Last Synced: 2024-08-01T17:36:53.531Z (4 months ago)
- Topics: checker, crystal, validator
- Language: Crystal
- Size: 11.7 KB
- Stars: 23
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-crystal - denetmen - Micro check library that patches Crystal stdlib (Validation)
- awesome-crystal - denetmen - Useful micro validator / check library (Misc)
README
# denetmen
```
_ _
| | | |
__| | ___ _ __ ___| |_ _ __ ___ ___ _ __
/ _` |/ _ \ '_ \ / _ \ __| '_ ` _ \ / _ \ '_ \
| (_| | __/ | | | __/ |_| | | | | | __/ | | |
\__,_|\___|_| |_|\___|\__|_| |_| |_|\___|_| |_|
```[![Build Status](https://travis-ci.org/izniburak/denetmen.svg?branch=master)](https://travis-ci.org/izniburak/denetmen)
useful micro check library for Crystal Lang.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
denetmen:
github: izniburak/denetmen
```## Usage
```crystal
require "denetmen""[email protected]".email? # true
"crystal-lang.com".domain? # true
"http://crystal-lang.com/".url? # true# and more...
```
## String Methods
- 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?## Number Methods
- positive?
- negative?
- zero?
- div?(n)
- above?(n)
- below?(n)## Contributing
1. Fork it ( https://github.com/izniburak/denetmen/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
- [izniburak](https://github.com/izniburak) İzni Burak Demirtaş - creator, maintainer