0.0.6 • Published 6 years ago

viewscript-examples v0.0.6

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

viewscript-examples

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

  • Note: files

Install

$ npm install viewscript-schema --save

Usage

const exampleLoader = require('viewscript-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