1.0.0 • Published 6 years ago

the-csv v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

the-csv

Build Status npm Version JS Standard

CSV generator for the-framework

Installation

$ npm install the-csv --save

Usage

'use strict'

const {TheCSV} = require('the-csv')

async function tryExample () {
  const csv = new TheCSV({
    headers: ['foo', 'bar', 'baz']
  })

  csv.push(
    [1, '2', 3]
  )

  const csvString = await csv.asString()
  console.log(csvString)
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Links