Socket
Socket
Sign inDemoInstall

ceseve

Package Overview
Dependencies
2
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ceseve

Convert arrays of data to CSV files


Version published
Weekly downloads
18
decreased by-14.29%
Maintainers
1
Install size
23.4 kB
Created
Weekly downloads
 

Readme

Source

Build Status install size

ceseve

Convert array of data to CSV file

Install

$ npm install ceseve

Usage

const csv = require('ceseve');

const data = [
  { title: "foo", property: "bar" },
  { title: "foo_2", property: "bar_2" }
];

const csvDocument = csv(data);
// csv:
//  title,property
//  foo,bar
//  foo_2,bar_2

You can specify options object:

const csvDocument = csv(data, {
  separator: ';',
});
// csv:
//  title;property
//  foo;bar
//  foo_2;bar_2

License

MIT © Carlos Azaustre

Keywords

FAQs

Last updated on 18 Oct 2020

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