formscript-examples

Produces Formscript's main README.md file using FormScript's JSON Schema and other sources.

Usage no npm install needed!

<script type="module">
  import formscriptExamples from 'https://cdn.skypack.dev/formscript-examples';
</script>

README

formscript-examples

Example Formscript JSON files, to help with testing and documentation. Includes loader utility.

  • Note: files

Install

$ npm install formscript-schema --save

Usage

const exampleLoader = require('formscript-examples')

// Loads an example from the /lib/fixtures dir.
// Param is name of JSON file, without .json

const simpleFormExample = exampleLoader('simple-form')

Testing

$ npm test

License

GPLv3