A js library specialized in processing csv data.
- Parse csv format
- Serialized csv format
- Csv data CRUD
- Browser download csv
@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.
npm install @csv-js/csv --save
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()
To be perfected.
Licensed under the MIT License.