@wmfs/cardscript-extract-lists
v1.20.0
Published
Extracts list objects from some Cardscript.
Downloads
300
Readme
cardscript-extract-lists
Extracts list objects from some Cardscript.
Install
$ npm install cardscript-extract-lists --save
Usage
const extractLists = require('@wmfs/cardscript-extract-lists')
const lists = extractLists(
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "Change me!",
"color": "attention",
"horizontalAlignment": "center"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
)
Testing
$ npm test