simple-form
$ version 1.0.0
Form processor for filter and validation form data. This base on form. I develop this module because the idea of this package is very good, but the current module didn't work.
Installation
Install simple-form then run the following.
$ npm install simple-form --save-dev
Example
Processing an example form:
var form = ; var elements = name: form ; form ;
The result:
error: nulldata: name: 'tester'
Extend your validator
You can define your own validator:
var form = ; form; var elements = name: form form form email: form form form ; form ;
The result:
error: email: 'Bad Email' data: name: 'tester' email: ''
Your own validator
You can use your own validator:
var form = ; { ;} var elements = name: form form customNameValidator ; form ;
The result:
error: name: 'So bad' data: name: 'tester'