NPM wrapper for the Tableau JavaScript API (v2.2.3, last release December 2020). This package provides a convenient way to include the Tableau JS library in Node.js or browser bundlers (Webpack, Rollup). It mirrors the official Tableau JS API, which allows embedding Tableau visualizations, interacting with workbooks and sheets, and extracting underlying data. Key differentiators: simplifies dependency management for Tableau JS compared to manual script tags; however, it lags behind the official CDN version (current Tableau API is v3.x). Release cadence is low (last update in 2020). For new projects, prefer the official CDN or the '@tableau/embedding-api' package.
npm install tableau-apiVerified import paths — ran on the pinned version, not inferred.
Embeds a Tableau visualization and logs underlying data when interactive.
Always use 'new window.tableau.Viz(...)' after importing 'tableau-api'.
Migrate to @tableau/embedding-api or use CDN script for v3.
Use dynamic import or only load in browser environment.
Pin to v2.0 if you need bundled version.
Refer to official Tableau JS API docs for current return types.
Use 'window.tableau.Viz(...)' instead of 'tableau.Viz(...)'.
Ensure code runs only in browser; use dynamic import or conditional check.
Wait for tableau script to load: use 'tableau' global, not import.
Run 'npm install tableau-api' and ensure correct import path.
No dependency data recorded yet.