github-formschema-converter

0.0.2 • Public • Published

GitHub-FormSchema-Converter

Enter Your Logo!

This is a JavaScript module that converts GitHub Form Schema into HTML

License contributors your repo's last-commit your repo's stars your repo's forks your repo's watchers your repo's issues

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.

Package Sidebar

Install

npm i github-formschema-converter

Weekly Downloads

0

Version

0.0.2

License

Apache-2.0

Unpacked Size

18 kB

Total Files

4

Last publish

Collaborators

  • ymw0407