# convert-object-csv

> Converte um json em CSV

Latest version **1.2.0** (published 2018-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install convert-object-csv
pnpm add convert-object-csv
yarn add convert-object-csv
bun add convert-object-csv
```

## 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.2.0 |
| Published | 2018-04-11 |
| First published | 2018-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jameson rodrigues |
| Maintainers | jamrodrigues |
| Keywords | csv, son, convert, export |

## Links

- npm: https://www.npmjs.com/package/convert-object-csv
- Repository: https://github.com/jamrodrigues/convert-object-csv
- Homepage: https://github.com/jamrodrigues/convert-object-csv#readme
- Issues: https://github.com/jamrodrigues/convert-object-csv/issues
- npm.io page: https://npm.io/package/convert-object-csv

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.2.0 (latest) — 2018-04-11
- 1.0.1 — 2018-04-10
- 1.0.0 — 2018-04-10

## README

# Convert Object CSV

E um simples função que converte Json em CSV no Charset UTF8.

### Via  GitHub
1 - Clone o projeto para o local de sua escolha

2 - Import o arquivo ../convert-object-csv/index.js em seu index.html

3 - E pronto é so usar.


### Via NPM

1 - npm i convert-object-csv

2 - 2 - Import o arquivo ..node-modules/convert-object-csv/index.js em seu index.html

3 - E pronto é so usar.

## Como usar:

```js
    //Setando o json
    var Body = [{
        {
                    "Nome": "João da silva",
                    "Telefone": "8190000-0000",
                    "Email": "joao@Email.com",
                    "Sexo": "M",
                    "Idade": 35
        }
    }];
    //Setando chave => Valor 
	var header = {
		'Nome': 'Nome',
		'Telefone': 'Telefone',
		'Email': 'Email',
		'Sexo': 'Sexo',
		'Idade': 'Idade'
    };
    //Convertendo
    convertObjectCsv('prefixo_do_nome_do_arquivo', body, header);

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