Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/carlosazaustre/ceseve

Convert arrays of data to CSV files
https://github.com/carlosazaustre/ceseve

csv csv-parser hacktoberfest javascript node-js

Last synced: about 2 months ago
JSON representation

Convert arrays of data to CSV files

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/carlosazaustre/ceseve.svg?branch=master)](https://travis-ci.org/carlosazaustre/ceseve)

[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)

[![install size](https://packagephobia.now.sh/badge?p=ceseve)](https://packagephobia.now.sh/result?p=ceseve)

# ceseve
> Convert array of data to CSV file

## Install
```
$ npm install ceseve
```

## Usage
```js
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:
```js
const csvDocument = csv(data, {
separator: ';',
});
// csv:
// title;property
// foo;bar
// foo_2;bar_2

```

## License
MIT © [Carlos Azaustre](https://carlosazaustre.es)

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



Carlos Azaustre

💻

Sebastian Duque Restrepo

💻

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!