🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

async-json2csv

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-json2csv

Use es7 async to convert json to csv form data

1.0.4
latest
Source
npm
Version published
Weekly downloads
407
-6.44%
Maintainers
1
Weekly downloads
 
Created
Source

async-json2csv

A simple json to csv module to support async.

NPM Version Downloads Dependency Status License

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)

Keywords

async

FAQs

Package last updated on 07 May 2018

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