@google/dscc-validation
v1.0.4
Published
Scripts to validate files for Data Studio Community Visualizations. The project is primarily used by [dscc-scripts].
Downloads
218
Readme
dscc-scripts
Scripts to validate files for Data Studio Community Visualizations. The project is primarily used by dscc-scripts.
Usage
To use these scripts, add @google/dscc-validation
to your package.json
.
npm install -D @google/dscc-validation
or
yarn add -D @google/dscc-validation
This will make dscc-validation
available to your npm scripts.
Sample usage: (Typescript)
import * as validate from '@google/dscc-validation';
// to validate a manifest JSON
validate.validateManifest(JSON.parse(manifestString));
// to validate a config
validate.validateConfig(configString);