<commit_before>Example Plugin for Composed Validations Library
==============================

[![Build Status](https://drone.io/github.com/composed-validations/composed-validations-plugin-example/status.png)](https://drone.io/github.com/composed-validations/composed-validations-plugin-example/latest)

This is a example plugin. Clone this repo and create your own plugin for the composed validations library.

# Installation
```
npm install cv-plugin-example
```

# How to Use
```javascript
var validations = require('composed-validations');
var helloValidator = require('cv-plugin-example')(validations);

var validator = helloValidator()

validator.test("hello") // will return hello (valid)
validator.test("world") // false (will throw an error with the error message: is not a hello text)

```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## License

[MIT License](http://djalmaaraujo.mit-license.org)<commit_msg>README updates<commit_after>Email Validator Plugin for Composed Validations Library
==============================

[![Build Status](https://drone.io/github.com/composed-validations/cv-email/status.png)](https://drone.io/github.com/composed-validations/cv-email/latest)

This is the Official Email Validator Plugin for the Composed Validations Library. The regex used in this plugin is based on the most pratical RFC 5322 standard. You can read more about the standard and the regex itself in: [http://www.regular-expressions.info/email.html](http://www.regular-expressions.info/email.html).

# Installation
```
npm install cv-email
```

# How to Use
```javascript
var validations    = require('composed-validations');
var emailValidator = require('cv-email')(validations);

emailValidator.test("<EMAIL>"); // will return <EMAIL>.com
emailValidator.test("wrong email"); // false (will throw an error with the error message: is not a valid email)

```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## License

[MIT License](http://djalmaaraujo.mit-license.org)
{'fraction_non_alphanumeric': 0.1464240372407956, 'fraction_numerical': 0.005924672027084215, 'mean_word_length': 4.984810126582278, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4751756', 'n_tokens_mistral': 716, 'n_tokens_neox': 686, 'n_words': 228}