1.0.10 • Published 1 year ago

xlsx-to-csv-ts v1.0.10

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

XLSX to CSV

A simple script to convert .xlsx file to .csv file, with the ability to filter / rename columns.

NPM Version GitHub Release npm bundle size MIT License Build Status GitHub Repo stars

Introduction

A simple script to convert .xlsx file to .csv file, with the ability to filter / rename columns.

Install

To install, run the following command in your terminal:

npm install xlsx-to-csv-ts

Usage

Import

To use xlsx-to-csv-ts in your Node.js project, you need to import it as follows:

import { convertXlsxToCsv } from "xlsx-to-csv-ts";

Example

const result = await convertXlsxToCsv({
  inputFile: "./public/sample.xlsx",
  outputFilename: "sample-filtered",
  outputDir: "./public/",
  filter: { Segment: "segment", Country: "country" },	// Format: { "original column": "renamed column", ... }
});

console.log(result.outputPath)
1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.0

1 year ago