JavaScript SDK
Universal JavaScript library for the Taxu API, works in browser and Node.js environments.
What is the Taxu JavaScript SDK?
The Taxu JavaScript SDK is a universal library that works seamlessly in both browser and Node.js environments. Whether you're building a client-side single-page application, a server-rendered website, or a full-stack JavaScript app, this SDK provides a consistent API for tax and financial operations.
With zero dependencies and a tiny bundle size, the JavaScript SDK is perfect for modern web applications where performance matters. It handles tax calculations, form generation, and document processing with a simple, promise-based API that works everywhere JavaScript runs.
Ideal For:
- • Vanilla JavaScript applications
- • jQuery and legacy codebases
- • Server-side rendering (SSR)
- • Static site generators
Universal Features:
- • Browser and Node.js compatible
- • Zero dependencies
- • Tiny bundle size (~15KB gzipped)
- • Promise-based API
v1.5.0
Universal
Installation
npm
npm install @taxu/jsUsage
import Taxu from '@taxu/js';
const taxu = new Taxu('your_publishable_key');
// Calculate tax
const result = await taxu.tax.calculate({
income: 75000,
filingStatus: 'single'
});
console.log(result.totalTax);