Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/carlosazaustre/ceseve
- Owner: carlosazaustre
- License: mit
- Created: 2019-03-30T23:09:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-18T19:00:29.000Z (about 4 years ago)
- Last Synced: 2024-10-30T16:20:12.091Z (2 months ago)
- Topics: csv, csv-parser, hacktoberfest, javascript, node-js
- Language: JavaScript
- Homepage:
- Size: 73.2 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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!