New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

form-pal

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

form-pal

Generate your own forms easily.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Form-Pal (Form Generator)

Form-Pal lets you create your own forms without losing time and tinkering with the details. Make sure to read the usage section for optimal usage.

Installation

npm i form-pal

Usage

const fp = require('form-pal');

let form = fp.build({
    form_fields: [
        { type: 'text', value: 'firstname' },
        { type: 'number', value: 'age' },
        { type: 'email', value: 'email' },
        { type: 'textarea', value: 'msg' },
        { type: 'submit', value: 'Send' },
        { type: 'checkbox', value: 'good' },
        { type: 'radio', value: 'gender' },
        { type: 'select', ops: [
            { option: 'parameter0' }, 
            { option: 'parameter1' }] }
    ], 
    form_validate: true,
    form_method: 'post', 
    form_action: 'index.php', 
    form_class: 'myClass' 
});
  • form_fields / Array of Objects / Required
  • form_method / string / Required
  • form_action / string / Required

Keywords

form-generator

FAQs

Package last updated on 14 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts