# csv-property

> convert to csv string to JSON object

Latest version **1.0.3** (published 2020-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install csv-property
pnpm add csv-property
yarn add csv-property
bun add csv-property
```

Provides the command `csvproperty`.

## 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.3 |
| Published | 2020-06-27 |
| First published | 2020-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | afrontend |
| Keywords | csv, object, property |

## Links

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

## 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.3 (latest) — 2020-06-27
- 1.0.2 — 2020-05-11
- 1.0.1 — 2020-05-10
- 1.0.0 — 2020-05-08

## README

[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)
# csv-property
Convert CSV string to JSON object

Convert JSON object to CSV string

CSV string: "path1, path2, path3, string"

```javascript
// From
'popup, title, Login'

// To
{
  popup: {
    title: 'Login'
  }
}
```

## Install
```sh
npm install csv-property
```

## Usage
```javascript
const { toObject, toCSVString } = require('csv-property')
toObject([ 'popup, title, Login' ]) // { popup: { title: 'Login' } }
toCSVString({ popup: { title: 'Login' } }) // [ 'popup, title, Login' ]
toObject([ 'popup; title; Login' ], ';') // { popup: { title: 'Login' } }
toCSVString({ popup: { title: 'Login' } }, ';') // [ 'popup; title; Login' ]
```

## License
MIT © Bob Hwang

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