Socket
Socket
Sign inDemoInstall

async-json2csv

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    async-json2csv

Use es7 async to convert json to csv form data


Version published
Weekly downloads
128
increased by5.79%
Maintainers
1
Install size
4.51 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 07 May 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc