github-formschema-converter
v0.0.2
Published
Convert GitHub's Form Schema to HTML
Downloads
2
Maintainers
Readme
GitHub-FormSchema-Converter
How to install
# install with npm!
npm install github-formschema-converter
# install with yarn!
yarn install github-formschema-converter
How to use
import * as formSchema from 'github-formschema-converter';
const yamlString = `
---
name: '📕 Documentation Issue'
description: Report an issue in the Developer Guide
title: '📕 [DOCS] - <title>'
labels: [documentation]
assignees: []
body:
- type: textarea
id: description
attributes:
label: 'Describe'
description: A clear and concise description of the issue.
validations:
required: true
- type: input
id: links
attributes:
label: 'Links'
description: Include links to affected documentation page.
validations:
required: true
`;
const result = formSchema.yaml2html(yamlString);
Contributing
We always welcome your contributions. Please see the CONTRIBUTING.md for how to contribute.
License
GitHub-FormSchema-Converter is released under Apache License 2.0. See the LICENSE file for details.