https://github.com/wmfs/form-maker
https://github.com/wmfs/form-maker
forms package tymly
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wmfs/form-maker
- Owner: wmfs
- License: mit
- Created: 2018-06-20T07:40:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-16T00:38:07.000Z (4 months ago)
- Last Synced: 2025-04-16T19:28:28.446Z (about 2 months ago)
- Topics: forms, package, tymly
- Language: JavaScript
- Size: 267 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Form-maker
[](https://tymly.io/)
[](https://www.npmjs.com/package/@wmfs/form-maker)
[](https://circleci.com/gh/wmfs/form-maker)
[](https://codecov.io/gh/wmfs/form-maker)
[](https://www.codefactor.io/repository/github/wmfs/form-maker)
[](https://dependabot.com/)
[](http://commitizen.github.io/cz-cli/)
[](https://standardjs.com)
[](https://github.com/wmfs/tymly/blob/master/packages/pg-concat/LICENSE)> Generates a form and state machine in JSON format based on a given yaml.
## Tests
```bash
$ npm test
``````javascript
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](https://github.com/wmfs/tymly-runner/blob/master/LICENSE)