Extracts sensible defaults from some Cardscript.
$ npm install cardscript-extract-defaults --save
const extractDefaults = require('@wmfs/cardscript-extract-defaults')
const defaultValues = extractDefaults(
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "Change me!",
"color": "attention",
"horizontalAlignment": "center"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
)
$ npm test