cv-plugin-example
A awesome example plugin
Last updated 6 years ago by djalmaaraujo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cv-plugin-example 
SYNC missed versions from official npm registry.

Example Plugin for Composed Validations Library

Build Status

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

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

Current Tags

  • 0.2.0                                ...           latest (6 years ago)

3 Versions

  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |