Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

ceseve

1.2.0 • Public • Published

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

Install

npm i ceseve

DownloadsWeekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

5.4 kB

Total Files

9

Last publish

Collaborators

  • avatar