# @sammaye/ng-csv

> Angular CSVs

Latest version **1.0.2** (published 2019-07-20) · 0 weekly downloads

## Install

```sh
npm install @sammaye/ng-csv
pnpm add @sammaye/ng-csv
yarn add @sammaye/ng-csv
bun add @sammaye/ng-csv
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-07-20 |
| First published | 2019-07-20 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 96.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sammaye |
| Maintainers | sammaye |
| Keywords | angular, csv |

## Links

- npm: https://www.npmjs.com/package/@sammaye/ng-csv
- Homepage: https://github.com/Sammaye/ng-csv
- npm.io page: https://npm.io/package/@sammaye/ng-csv

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Alternatives

- [@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
- [@1selfworld/adchain-sdk-react-native](https://npm.io/package/@1selfworld/adchain-sdk-react-native.md) — 80 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-07-20
- 1.0.1 — 2019-07-20
- 1.0.0 — 2019-07-20
- 0.0.3 — 2019-07-20
- 0.0.2 — 2019-07-20
- 0.0.1 — 2019-07-20

## README

# NgCsv

Making CSVs with Angular.

This library is really simple, just a single class with a small and slim API.

## Install

```
npm i @sammaye/ng-csv --save
```

## Use

Much of the documentation for the different options can be found directly in the code. It is very well documented and should be easy to read.

Here I will just give a quick example of usage:
```javascript
new NgCsv(
  [
    {
      address: "T",
      name: "T",
      email: "T",
      from: "T",
      to: "T",
      days: "T",
      hours: "T"
    }
  ],
  'Employee Details', 
  {
    labels: [
      'Address',
      'Name',
      'Email Address',
      'From',
      'To',
      'Days',
      'Hours',
    ]
  }
).download();
```

Will print and download a CSV which contains one row, with the labels as the column headers using the filename `employee_details.csv`.

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