1.3.0 • Published 3 years ago

@wmfs/cardscript-parser v1.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

cardscript-parser

Tymly Cardscript CircleCI npm (scoped) codecov CodeFactor Dependabot badge Commitizen friendly JavaScript Style Guide license

Like JSON.parse(), but for Cardscript. And it supports YAML.

Install

$ npm install cardscript-parser --save

Usage

const parser = require('@wmfs/cardscript-parser')

const cardscriptObject = parser(
  `{
    "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

License

MIT

1.3.0

3 years ago

1.2.0

4 years ago

1.1.0

5 years ago

1.0.0

5 years ago