0.2.7 • Published 1 year ago

redash-snapshot v0.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Redash.io query snapshots

Version Downloads/week License TypeScript

Create query snapshots (PNG) with node for redash.

Installation

npm install redash-snapshot

or

yarn add redash-snapshot

Usage

import {querySnapshot} from 'redash-snapshot'

const snapshot = await querySnapshot({
    token: 'my-user-token',
    queryId: 'query-id',
    visualizationId: 'visualization-id'
});

Parameters

namedefaulttype
tokenstring
queryIdstring
visualizationIdstring
hosthttps://redash.iostring
pathstring
width800number
height600number

If path is defined, the png will be written to disk at given path.

References