Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-json2csv

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-json2csv

Gulp plugin to convert json to csv format

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
115
increased by51.32%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-json2csv

Gulp plugin to Convert json to csv format.

npm npm Build Status Known Vulnerabilities Greenkeeper badge npm

Logo

You can also use this package to convert json to excel format by simply renaming the output extension to excel's extension.

This plugin is backed by json2csv module.

Install

$ npm install --save-dev gulp-json2csv

Usage

const gulp = require('gulp');
const json2csv = require('gulp-json2csv');

gulp.task('default', function() {
	gulp
		.src('src/file.json')
		.pipe(json2csv())
		.pipe(gulp.dest('dist'));
});

Example

input:

[
	{
		"car": "Audi",
		"price": 40000,
		"color": "blue"
	},
	{
		"car": "BMW",
		"price": 35000,
		"color": "black"
	},
	{
		"car": "Porsche",
		"price": 60000,
		"color": "green"
	}
]

output =>

"car", "price", "color"
"Audi", 40000, "blue"
"BMW", 35000, "black"
"Porsche", 60000, "green"

Change log

  • 1.1.0
  • 1.0.3, 1.0.4, 1.0.5, 1.0.6
    • docs update

License

MIT © Vajahath Ahmed

Keywords

FAQs

Package last updated on 12 Mar 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc