
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
gulp-json2csv
Advanced tools
Gulp plugin to Convert json to csv format.
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.
$ npm install --save-dev gulp-json2csv
const gulp = require('gulp');
const json2csv = require('gulp-json2csv');
gulp.task('default', function() {
gulp
.src('src/file.json')
.pipe(json2csv())
.pipe(gulp.dest('dist'));
});
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"
MIT © Vajahath Ahmed
FAQs
Gulp plugin to convert json to csv format
We found that gulp-json2csv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.