npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

turbo-export-engine

v1.0.1

Published

High-performance CSV and XLSX export engine powered by Go

Readme

turbo-export-engine

High-performance CSV and XLSX export engine powered by Go. Export millions of rows in seconds.

Installation

npm install turbo-export-engine

Usage

const { ExportEngine } = require('turbo-export-engine');

const engine = new ExportEngine();

// Sample data
const data = [
  { id: 1, name: 'John', email: '[email protected]' },
  { id: 2, name: 'Jane', email: '[email protected]' }
];

// Export to CSV file
const csvResult = await engine.exportCsv(data, '/tmp/output.csv', {
  mode: 'parallel',
  workers: 4
});

// Export to XLSX file
const xlsxResult = await engine.exportXlsx(data, '/tmp/output.xlsx', {
  mode: 'parallel',
  workers: 4
});

// Export to buffer (in-memory)
const csvBuffer = await engine.exportCsvBuffer(data, { mode: 'parallel' });
const xlsxBuffer = await engine.exportXlsxBuffer(data, { mode: 'parallel' });

// Split large data into multiple files and zip
const zipResult = await engine.splitZip(data, '/tmp/output.zip', {
  format: 'csv',
  chunkSize: 1000,
  mode: 'parallel',
  workers: 4
});

API

ExportEngine

exportCsv(data, outputPath, options?)

Export data to CSV file.

exportXlsx(data, outputPath, options?)

Export data to XLSX file.

exportCsvBuffer(data, options?)

Export data to CSV buffer.

exportXlsxBuffer(data, options?)

Export data to XLSX buffer.

splitZip(data, outputPath, options?)

Split data into multiple files and package as ZIP.

splitZipBuffer(data, options?)

Split data into multiple files and return ZIP as buffer.

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | mode | 'sync' | 'parallel' | 'global_pool' | 'sync' | Execution mode | | workers | number | 4 | Number of parallel workers | | chunkSize | number | 10000 | Rows per chunk (for splitZip) | | format | 'csv' | 'xlsx' | 'csv' | Output format (for splitZip) | | includeHeaders | boolean | true | Include headers in output |

Performance

  • 500K rows CSV: ~1.5 seconds
  • 500K rows XLSX: ~3 seconds
  • Parallel mode: Up to 4x faster than sync mode

License

MIT