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

convert-json-csv

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-json-csv

Convert json2csv and csv2json

  • 0.0.4
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

convertJsonCsv

Javascript module for convert formats json to csv and csv to json

Install

npm install convert-json-csv

Example

var convert = require('convert-json-csv'),
csv2json = convert.csv2json,
json2csv = convert.json2csv;

var csv = 'album, year, US_peak_chart_post \n' +
          'Live at the Gold Dollar, 1999, - \n' +
          'De Stijl, 2000, - \n' +
          'White Blood Cells, 2001, 61 \n' +
          'Elephant, 2003, 6 \n' +
          'Get Behind Me Satan, 2005, 3 \n' +
          'Icky Thump, 2007, 2 \n' +
          'Under Great White Northern Lights, 2010, 11 \n' +
          'Live in Mississippi, 2011, - \n' +
          'The White Stripes, 2012, - \n' +
          'Nine Miles from the White City, 2013, - \n';
csv2json(csv);
json2csv(JSON.parse(csv2json(csv));

License

MIT

Keywords

FAQs

Package last updated on 03 Sep 2016

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