# @sadiqumar18/csv-to-xlsx

> Convert CSV files to XLSX (Excel 2007+ XML Format) files via Node.js CLI or API. credits to https://github.com/Aternus/csv-to-xlsx#aternuscsv-to-xlsx

Latest version **1.0.0** (published 2021-10-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sadiqumar18/csv-to-xlsx
pnpm add @sadiqumar18/csv-to-xlsx
yarn add @sadiqumar18/csv-to-xlsx
bun add @sadiqumar18/csv-to-xlsx
```

Provides the command `csv-to-xlsx`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-10-25 |
| First published | 2021-10-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 3 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| Author | Kiril Reznik |
| Maintainers | sadiqumar18 |
| Keywords | convert, csv, xlsx, excel, xml, utf-8, multilingual, batch, cli, api, windows, linux, macos |

## Links

- npm: https://www.npmjs.com/package/@sadiqumar18/csv-to-xlsx
- Repository: https://github.com/Aternus/csv-to-xlsx
- Issues: https://github.com/Aternus/csv-to-xlsx/issues
- npm.io page: https://npm.io/package/@sadiqumar18/csv-to-xlsx

## Dependencies (3)

- [xlsx](https://npm.io/package/xlsx.md) ^0.16.9
- [commander](https://npm.io/package/commander.md) ^7.2.0
- [csv-parse](https://npm.io/package/csv-parse.md) ^4.15.1

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-10-25

## 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

```bash
npm install @aternus/csv-to-xlsx
```

## Usage

### Binaries

Download the executables from the `bin` folder.

```bash
./csv-to-xlsx-linux -i "input-directory" -o "output-directory"
```

### Node.js CLI

Type `--help` for a full list of options.

```bash
npx @aternus/csv-to-xlsx -i "input-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.

---
_Source: https://npm.io/package/@sadiqumar18/csv-to-xlsx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
