cv-plugin-example
v0.2.0
Published
A awesome example plugin
Maintainers
Readme
Example Plugin for Composed Validations Library
This is a example plugin. Clone this repo and create your own plugin for the composed validations library.
Installation
npm install cv-plugin-exampleHow to Use
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D

