1.0.4 • Published 6 years ago

async-json2csv v1.0.4

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

async-json2csv

A simple json to csv module to support async.

Usage

var json2csv = require('async-json2csv');

var authors = [{
  name: 'solee',
  homepage: 'http://solee.me',
  repo: {
    url: 'https://github.com/solee0524/async-json2csv.git',
    type: 'git'
  },
  keys: ['coo"l', 'lol']
}, {
  name: 'solee_clone',
  homepage: 'http://solee.me',
  repo: {
    url: 'https://github.com/solee0524/async-json2csv.git',
    type: 'git'
  },
  keys: ['clone', 'myth']
}];

var options = {
  data: authors,
  fields: ['name', 'homepage', 'repo.url', 'keys'],
  header: true
}

var csv = await json2csv(options);

data and fields in options must be Array

Change

v1.0.2

Fix comma stuff.

v1.0.1

Add header option to decide whether to add fields to header or not.

License

MIT © Bo Li (solee.me)

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago