1.0.1 • Published 1 year ago

@javarome/csv4json v1.0.1

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

csv4json

Converts CSV to JSON, and vice versa.

Vanilla JS, no dependencies.

Setup

Either install it globally:

npm install -g @javarome/csv4json

or locally:

npm install @javarome/csv4json

Usage

CLI

csv4json --input <csv or json file> --output <json or csv file>

API

Convert file

const converter = new Csv4Json('../test/input.csv', '../test/output.json', ',', '\n')
converter.run().then(result => {
  console.log('Written', result)
})

Convert contents

const converter = new Csv4Json('../test/input.csv', '../test/output.json', ',', '\n')
converter.run().then(result => {
  console.log('Written', result)
})
1.0.1

1 year ago

1.0.0

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago