Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iso-form

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iso-form

Generate form html, js, and json-schema all from one master schema.

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

iso-form

Build Status npm version Code Climate Test Coverage

An isomorphic, schema based form generator that can be used in the client, on the server, or even to pre-compile forms in the build phase. This is the core library that is used to register form types. Support will soon be added for pluggable "processors" that can be loaded to create types for different use cases and different frameworks.

###Example

var isoForm = new IsoForm();

// To use, register a type with a name and a template function
isoForm.addItemType('input', function (itemData) {
    return '<input id="'+itemData.id+'">';
});

// Or types can be registered with strings instead
isoForm.addGroupType('group', '<div>', '</div>');

var form = isoForm.build({
    type:'group',
    items: [
        { type: 'input', id: 'test' }
    ]
});

// form.isValidSchema == true;
// form.html == '<div><input id="test"></div>';

Warning: This is still very much a work in progress.

Keywords

FAQs

Package last updated on 15 Jul 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc