# fec2csv

> A CLI tool to take an FEC filing and turn it into a bunch of CSVs.

Latest version **0.1.0** (published 2019-04-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install fec2csv
pnpm add fec2csv
yarn add fec2csv
bun add fec2csv
```

Provides the command `fec2csv`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-04-21 |
| First published | 2019-04-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 394.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Jeremia Kimelman |
| Maintainers | jeremiak |
| Keywords | fec, csv, parser |

## Links

- npm: https://www.npmjs.com/package/fec2csv
- Repository: https://github.com/jeremiak/fec2csv
- Homepage: https://github.com/jeremiak/fec2csv#readme
- Issues: https://github.com/jeremiak/fec2csv/issues
- npm.io page: https://npm.io/package/fec2csv

## Dependencies (2)

- [ora](https://npm.io/package/ora.md) ^3.4.0
- [fec-parse](https://npm.io/package/fec-parse.md) ^0.17.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2019-04-21

## README

# FEC fillings to CSV

A small CLI tool to take a `.fec` filing and turn it into a collection of CSVs, one for each form type.

## Installation & usage

`$ npm install -g fec2csv`
`$ fec2csv path/to/file.fec path/to/output/dir`

`fec2csv` expects at least one argument but can take two. The first one, which is required, is the path to the `.fec` source file. The second, which is optional, is the path to the directory where `fec2csv` should put the generated files. This will default to the current directory (`.`).

## Motivation

This tool creates nice CSV files out of those files to do analysis quickly. The FEC publishes `.fec` files really quickly, but they're sort of hard to use. First, the `.fec` file isn't actually a rectangular table. It is a single file with all of the different types of FEC submissions combined into table.

## Credits

The work horse of this tool is [`fec-parser`](https://www.npmjs.com/package/fec-parse) by [@chriszs](https://github.com/chriszs), which in turn uses code from the [Fech Ruby gem](https://github.com/NYTimes/Fech) by Derek Willis and others, and the [csv-parser module](https://github.com/mafintosh/csv-parser) by Mathias Buus, Max Ogden and others.

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