https://github.com/aternus/csv-to-xlsx
Convert CSV files to XLSX (Excel 2007+ XML Format) files.
https://github.com/aternus/csv-to-xlsx
api batch binary cli convert converter csv excel linux macos multilingual nodejs utf-8 windows xlsx xml
Last synced: 3 months ago
JSON representation
Convert CSV files to XLSX (Excel 2007+ XML Format) files.
- Host: GitHub
- URL: https://github.com/aternus/csv-to-xlsx
- Owner: Aternus
- License: mit
- Created: 2018-09-17T21:04:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T16:27:04.000Z (about 1 year ago)
- Last Synced: 2025-02-24T22:08:57.582Z (3 months ago)
- Topics: api, batch, binary, cli, convert, converter, csv, excel, linux, macos, multilingual, nodejs, utf-8, windows, xlsx, xml
- Language: TypeScript
- Homepage:
- Size: 382 MB
- Stars: 35
- Watchers: 2
- Forks: 14
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
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[](https://github.com/Aternus/csv-to-xlsx/actions/workflows/validate.yml)
Install with confidence 🛡️
## 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
```bash
npm install @aternus/csv-to-xlsx
```## Usage
### Binaries
Download the executables from the
[latest release](https://github.com/Aternus/csv-to-xlsx/releases).```bash
./csv-to-xlsx-linux -i "input-file-or-directory" -o "output-directory"
```### Node.js CLI
Type `--help` for a full list of options.
```bash
npx @aternus/csv-to-xlsx -i "input-file-or-directory" -o "output-directory"
```### Node.js API
```javascript
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.