A high-performance document processing library for Node.js, built with Zig. Provides native implementations for Excel, Word, and PDF manipulation with optimized memory usage and multi-threading capabilities.
npm install tik-forgeA high-performance PDF and Excel generator library for Node.js
``bash`
npm install tik-forge
`bash`
yarn add tik-forge
`bash`
bun add tik-forge
- Node.js >= 14.0.0
- Python (for node-gyp)
- C++ build tools
- wkhtmltopdf (for PDF generation)
- ssconvert (for Excel conversion)
`javascript
const tikForge = require('tik-forge');
async function generateDocuments() {
try {
await tikForge.generateFiles({
template: '
Configuration
Environment variables:
-
TEMP_DIR: Directory for temporary files
- MAX_CONCURRENT_OPS: Maximum concurrent operations
- CACHE_SIZE: Cache size in bytes
- TIMEOUT_MS: Operation timeout in millisecondsAPI Reference
$3
Generates PDF and Excel files from templates.
Options:
-
template: HTML template string
- data: Data to inject into template
- output: Output configuration
- path: Output directory
- format: 'file' | 'base64' | 'buffer'
- pdf: PDF generation options
- excel`: Excel generation optionsReturns: Promise
zig build -freference-trace