https://github.com/wmfs/cardscript-extract-graphs
https://github.com/wmfs/cardscript-extract-graphs
cardscript
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wmfs/cardscript-extract-graphs
- Owner: wmfs
- License: mit
- Created: 2019-06-20T10:09:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-16T00:27:53.000Z (3 months ago)
- Last Synced: 2025-04-13T07:03:50.781Z (about 1 month ago)
- Topics: cardscript
- Language: JavaScript
- Size: 167 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cardscript-extract-graphs
[](https://tymly.io/)
[](https://circleci.com/gh/wmfs/cardscript-extract-graphs)
[](https://www.npmjs.com/package/@wmfs/cardscript-extract-graphs)
[](https://codecov.io/gh/wmfs/cardscript-extract-graphs)
[](https://www.codefactor.io/repository/github/wmfs/cardscript-extract-graphs)
[](https://dependabot.com/)
[](http://commitizen.github.io/cz-cli/)
[](https://standardjs.com)
[](https://github.com/wmfs/tymly/blob/master/packages/concrete-paths/LICENSE)> Extracts graph components from Cardscript.
## Install
```bash
$ npm install cardscript-extract-graphs --save
``````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"
}
)```
```bash
$ npm test
```## License
[MIT](https://github.com/wmfs/cardscript/blob/master/LICENSE)