Athena-Express is a Node.js wrapper around the AWS SDK for Amazon Athena that simplifies executing SQL queries and fetching clean JSON results. It handles query initiation, polling for completion, result retrieval from S3, and error retries for throttling/network errors. Supports pagination and streaming, with optional cost reporting. Currently at v7.1.5, ships TypeScript types. Differentiators: synchronous/asynchronous fetch, automatic error handling, and a single-call API vs. manual AWS SDK orchestration. Release cadence is irregular; latest update 2021.
npm install athena-expressNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializing Athena-Express with AWS credentials, executing a SQL query, and logging results including cost.
Use aws-sdk v2 or fork/update library to support v3.
Set s3 config key or ensure Athena workgroup has result location set.
Use athena-express v5 for stable stats or manually calculate cost.
Use default import and then instantiate: new athenaExpress(config).
Change to import athenaExpress from 'athena-express'
Set AWS region in aws-sdk config or environment variable AWS_REGION
Run npm install aws-sdk