*nix Programming Mammals

    @wmfs/cardscript-parser

    1.3.0 • Public • Published

    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

    Install

    npm i @wmfs/cardscript-parser

    DownloadsWeekly Downloads

    5

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    27.1 kB

    Total Files

    8

    Last publish

    Collaborators

    • wmfsbot