New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@csv-js/csv

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@csv-js/csv

Main module for processing with Csv.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

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.

Keywords

csv

FAQs

Package last updated on 03 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts