Socket
Socket
Sign inDemoInstall

@wmfs/cardscript-extract-graphs

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @wmfs/cardscript-extract-graphs

Extracts graph components from Cardscript.


Version published
Weekly downloads
18
decreased by-37.93%
Maintainers
1
Install size
29.6 kB
Created
Weekly downloads
 

Readme

Source

cardscript-extract-graphs

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

Extracts graph components from Cardscript.

Install

$ npm install cardscript-extract-graphs --save

Usage

const extractGraphs = require('@wmfs/cardscript-extract-graphs')

const graphs = extractGraphs(
  {
    "type": "AdaptiveCard",
    "body": [
      {
        "id": "testGraph",
        "type": "Graph",
        "stats": {
          "mean": "{{data.mean}}",
          "stdev": "{{data.stdev}}",
          "min": "{{data.min}}",
          "max": "{{data.max}}"
        }
      }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.0"
  }
)

Testing

$ npm test

License

MIT

Keywords

FAQs

Last updated on 24 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc