0.0.3 • Published 1 year ago

@csv-js/csv v0.0.3

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

CsvJs

A js library specialized in processing csv data.

✨ Features

  • Parse csv format
  • Serialized csv format
  • Csv data CRUD
  • Browser download csv

📦︎ Packages

  • @csv-js/csv A class specialized in processing csv data.
  • @csv-js/core The core module for processing csv.
  • @csv-js/type Generic types for csv-js packsge.

👨‍💻 Usage

Install

npm install @csv-js/csv --save

Example

import Csv from '@csv-js/csv'

const header = [
  {
    key: 'name',
    label: 'Name'
  },
  {
    key: 'age',
  }
]
const csv = new Csv(header, { name: 'test' })

csv.append([
  {
    name: 'eddie',
    age: 20
  },
  {
    name: 'jojo',
    age: 18
  }
])

csv.toString() // 'Name,age\r\neddie,20\r\njojo,18'

// Browser download csv
csv.download()

📃 Documentation

To be perfected.

License

Licensed under the MIT License.

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago