@kuromi_gz/csv-to-xlsx
v1.0.2
Published
Convert CSV/TSV files to Excel .xlsx from the command line
Maintainers
Readme
csv-to-xlsx
Convert CSV / TSV files to Excel .xlsx from the command line.
Quick Start
npm install -g csv-to-xlsxcsv-to-xlsx data.csv # → data.xlsx
csv-to-xlsx data.csv -o output.xlsx # custom output path
csv-to-xlsx data.csv -d ";" # semicolon delimiter
csv-to-xlsx data.csv -s "MySheet" # custom sheet name
csv-to-xlsx data.tsv # auto-detects tab delimiterFeatures
- CSV & TSV — auto-detects
.csvvs.tsv, sets delimiter accordingly - Custom delimiter —
-d ";"for semicolons,-d "|"for pipes - Sheet naming —
-s "Data"sets the worksheet name - Auto-sized columns — column widths adjust to content
- Full CJK — Chinese, Japanese, Korean preserved
- Single dependency — just SheetJS for parsing and writing
CLI Reference
Usage: csv-to-xlsx [options] <input>
Arguments:
input Path to the .csv or .tsv file
Options:
-o, --output <path> Output .xlsx path (default: <input>.xlsx)
-d, --delimiter <char> Column delimiter (default "," for .csv, tab for .tsv)
-s, --sheet <name> Sheet name (default: "Sheet1")
--no-numbers Disable auto-detection of numeric columns
-V, --version Show version
-h, --help Show helpDevelopment
git clone <repo>
cd csv-to-xlsx
npm install
npm run dev -- data.csv # run without building
npm run build # compile TypeScript
npm test # run unit + integration testsLicense
MIT
