# @wmfs/cardscript-extract-graphs

> Extracts graph components from Cardscript.

Latest version **1.2.1** (published 2026-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wmfs/cardscript-extract-graphs
pnpm add @wmfs/cardscript-extract-graphs
yarn add @wmfs/cardscript-extract-graphs
bun add @wmfs/cardscript-extract-graphs
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2026-08-14 |
| First published | 2019-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 49.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | West Midlands Fire Service |
| Maintainers | wmfsbot |
| Keywords | tymly, cardscript, graphs |

## Links

- npm: https://www.npmjs.com/package/@wmfs/cardscript-extract-graphs
- Repository: https://github.com/wmfs/cardscript-extract-graphs
- Homepage: https://github.com/wmfs/cardscript-extract-graphs#readme
- Issues: https://github.com/wmfs/cardscript-extract-graphs/issues
- npm.io page: https://npm.io/package/@wmfs/cardscript-extract-graphs

## Alternatives

- [monaco-yaml](https://npm.io/package/monaco-yaml.md) — 420.1K weekly downloads
- [@crewx/workflow](https://npm.io/package/@crewx/workflow.md) — 3.1K weekly downloads
- [yaml-cat](https://npm.io/package/yaml-cat.md) — 38 weekly downloads
- [nunjucks-in-yaml](https://npm.io/package/nunjucks-in-yaml.md) — 9 weekly downloads
- [shopify-symlinks](https://npm.io/package/shopify-symlinks.md) — 3 weekly downloads

## Recent versions

- 1.2.1 (latest) — 2026-08-14
- 1.2.0 — 2025-10-21
- 1.1.0 — 2022-01-24
- 1.0.0 — 2019-06-20

## README

# cardscript-extract-graphs

[![Tymly Cardscript](https://img.shields.io/badge/tymly-cardscript-blue.svg)](https://tymly.io/)
[![CircleCI](https://circleci.com/gh/wmfs/cardscript-extract-graphs.svg?style=svg)](https://circleci.com/gh/wmfs/cardscript-extract-graphs)
[![npm (scoped)](https://img.shields.io/npm/v/@wmfs/cardscript-extract-graphs.svg)](https://www.npmjs.com/package/@wmfs/cardscript-extract-graphs) 
[![codecov](https://codecov.io/gh/wmfs/cardscript-extract-graphs/branch/master/graph/badge.svg)](https://codecov.io/gh/wmfs/cardscript-extract-graphs) 
[![CodeFactor](https://www.codefactor.io/repository/github/wmfs/cardscript-extract-graphs/badge)](https://www.codefactor.io/repository/github/wmfs/cardscript-extract-graphs) 
[![Dependabot badge](https://img.shields.io/badge/Dependabot-active-brightgreen.svg)](https://dependabot.com/) 
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) 
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) 
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/wmfs/tymly/blob/master/packages/concrete-paths/LICENSE)

> Extracts graph components from Cardscript.

## <a name="install"></a>Install
```bash
$ npm install cardscript-extract-graphs --save
```

## <a name="usage"></a>Usage

```javascript
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"
  }
)

```

## <a name="test"></a>Testing

```bash
$ npm test
```

## <a name="license"></a>License
[MIT](https://github.com/wmfs/cardscript/blob/master/LICENSE)

---
_Source: https://npm.io/package/@wmfs/cardscript-extract-graphs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
