ctx

@aternus/csv-to-xlsx

Convert CSV files to XLSX (Excel 2007+ XML Format) files.

Showing:

Popularity

Downloads/wk

1.5K

GitHub Stars

16

Maintenance

Last Commit

4mos ago

Contributors

0

Package

Dependencies

3

Size (min+gzip)

342.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

@aternus/csv-to-xlsx

Convert CSV files to XLSX (Excel 2007+ XML Format) files.

Written in JavaScript. Available for Node.js CLI and API.

Binaries are available for:

  • Windows x64
  • Linux x64
  • MacOS x64

Features

  • Binaries - download and run via your OS's command-line utility
  • Fast and Reliable
  • Full UTF-8 support
  • CSV Column detection
  • Batch mode - convert a CSV folder to an XLSX folder
  • Node.js CLI and API

Installation

npm install @aternus/csv-to-xlsx

Usage

Binaries

Download the executables from the bin folder.

./csv-to-xlsx-linux -i "input-directory" -o "output-directory"

Node.js CLI

Type --help for a full list of options.

npx @aternus/csv-to-xlsx -i "input-directory" -o "output-directory"

Node.js API

const path = require('path');
const convertCsvToXlsx = require('@aternus/csv-to-xlsx');

let source = path.join(__dirname, 'report.csv');
let destination = path.join(__dirname, 'converted_report.xlsx');

try {
  convertCsvToXlsx(source, destination);
} catch (e) {
  console.error(e.toString());
}

License

Released under the MIT License - see LICENSE.md for details.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100