# minimal-csv-formatter

> Transform arrays into CSV strings.

Latest version **1.0.19** (published 2022-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install minimal-csv-formatter
pnpm add minimal-csv-formatter
yarn add minimal-csv-formatter
bun add minimal-csv-formatter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.19 |
| Published | 2022-08-09 |
| First published | 2017-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Soroush Javadi |
| Maintainers | soroushj |
| Keywords | csv |

## Links

- npm: https://www.npmjs.com/package/minimal-csv-formatter
- Repository: https://github.com/soroushj/node-minimal-csv-formatter
- Homepage: https://github.com/soroushj/node-minimal-csv-formatter#readme
- Issues: https://github.com/soroushj/node-minimal-csv-formatter/issues
- npm.io page: https://npm.io/package/minimal-csv-formatter

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.0.19 (latest) — 2022-08-09
- 1.0.18 — 2022-04-24
- 1.0.17 — 2021-05-17
- 1.0.16 — 2021-03-31
- 1.0.15 — 2020-10-03
- 1.0.14 — 2020-08-27
- 1.0.13 — 2020-04-10
- 1.0.12 — 2020-02-20
- 1.0.11 — 2020-02-18
- 1.0.10 — 2019-06-23
- 1.0.9 — 2019-06-01
- 1.0.8 — 2018-03-07
- 1.0.7 — 2017-11-17
- 1.0.6 — 2017-11-09
- 1.0.5 — 2017-11-09
- … 5 more at https://npm.io/package/minimal-csv-formatter/versions

## README

# Minimal CSV Formatter

[![Build Status](https://travis-ci.org/soroushj/node-minimal-csv-formatter.svg?branch=master)](https://travis-ci.org/soroushj/node-minimal-csv-formatter)
[![codecov](https://codecov.io/gh/soroushj/node-minimal-csv-formatter/branch/master/graph/badge.svg)](https://codecov.io/gh/soroushj/node-minimal-csv-formatter)
[![npm version](https://badge.fury.io/js/minimal-csv-formatter.svg)](https://badge.fury.io/js/minimal-csv-formatter)

Transforms arrays into equivalent CSV strings. Conforms to [RFC 4180](https://tools.ietf.org/html/rfc4180), with the exception that, instead of `CRLF`, `LF` is used as line delimiter.

## Usage

```javascript
const csv = require('minimal-csv-formatter');

let singleRow = csv(['x', 'y']);
// 'x,y\n'

let multipleRows = csv([
  [1, 2],
  [3, 4],
]);
// '1,2\n3,4\n'

let emptyFields = csv([null, undefined]);
// ',\n'

let emptyRows = csv([
  [],
  null,
  undefined,
]);
// ''
```

---
_Source: https://npm.io/package/minimal-csv-formatter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
