0.0.7 • Published 6 years ago

form-maker v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

0.0.7

6 years ago

0.0.5

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago