# ary2json

> Convert text array to JSON

Latest version **1.0.4** (published 2021-09-29) · MIT license · 0 weekly downloads

## Install

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

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.4 |
| Published | 2021-09-29 |
| First published | 2020-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | afrontend |
| Keywords | ary, json, i18n |

## Links

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

## Dependencies (1)

- [csv-property](https://npm.io/package/csv-property.md) ^1.0.2

## 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.0.4 (latest) — 2021-09-29
- 1.0.3 — 2021-04-17
- 1.0.2 — 2020-06-27
- 1.0.1 — 2020-06-27
- 1.0.0 — 2020-06-25

## README

[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)

# ary2json

* Convert text array to JSON
* Convert JSON to text array

## Install

```sh
npm install ary2json
```

## Usage (text array to JSON)

```javascript
const { textPathsAryToObj, objToTextPathsAry, toJSONString } = require('ary2json')
const obj = textPathsAryToObj([[ '로그인', 'login', 'path1', 'path2', 'path3' ]], {
  numberOfLanguageColumn: 2
})
console.log(toJSONString(obj))
[
  {
    path1: {
      path2: {
        path3: '로그인'
      }
    }
  },
  {
    path1: {
      path2: {
        path3: 'login'
      }
    }
  }
]
```

## Usage (JSON to text array)

```javascript
const ko = {
    path1: {
      path2: {
        path3: '로그인'
      }
    }
  }

objToTextPathsAry(ko).forEach(function (s) {
  console.log(s)
})
로그인; path1; path2; path3
```

## License

MIT © [Bob Hwang](https://afrontend.github.io)

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