Non Programming Manager

    @core-framework/forms

    0.1.0 • Public • Published

    Core Framework / Forms

    NPM Version build status Coveralls

    About

    Form definition and validation library for Core Framework.

    Install

    NOTE This framework is work-in-progress, please don't use it in production yet!

    npm install --save @core-framework/forms

    Examples

    Simple form example:

    let forms = require('@core-framework/forms');
    let MyForm = forms.create([
        forms.field('field1', 'Bob').notEmpty(),
        forms.field('checkbox', true).checkbox()
    ]);
    
    //...
    
    let form = MyForm.createInstance(req.body);
    let result = form.validate();
    
    console.log(form.messages);
    console.log(form.values);

    Install

    npm i @core-framework/forms

    DownloadsWeekly Downloads

    6

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • atheros