This package has been deprecated

Author message:

WE'VE MOVED FORM-MAKER TO @wmfs/form-maker PLEASE USE THAT INSTEAD!

form-maker

0.0.7 • Public • Published

Form-maker

JavaScript Style Guide license

Generates a form and state machine in JSON format based on a given yaml.

Tests

$ npm test

Usage

const formMaker = require('form-maker')

formMaker (
  {
    namespace: 'test', // the namespace of the model you want to save form data to
    formName: 'peopleForm', // name of the form
    modelName: 'peopleModel', // name of the model that you want to save form data to
    yamlPath: 'path/to/yaml/file'
  },
  function (err, result) {
    // result.form - holds the generated form object
    // result.stateMachine - holds the generated state machine object
  }
)

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i form-maker

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

15.5 kB

Total Files

11

Last publish

Collaborators

  • timneedham