@wmfs/cardscript-examples
v1.22.0
Published
Example Cardscript JSON files, to help with testing and documentation. Includes loader utility.
Downloads
747
Readme
cardscript-examples
Example Cardscript JSON files, to help with testing and documentation. Includes loader utility.
- Note: files
Install
$ npm install cardscript-schema --save
Usage
const exampleLoader = require('@wmfs/cardscript-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