{"id":28385682,"url":"https://github.com/afrontend/ary2json","last_synced_at":"2025-06-26T12:31:26.044Z","repository":{"id":42781496,"uuid":"274928542","full_name":"afrontend/ary2json","owner":"afrontend","description":"하나의 파일로 언어별 JSON 파일 생성하기","archived":false,"fork":false,"pushed_at":"2024-06-16T12:27:03.000Z","size":147,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T13:07:22.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://agvim.wordpress.com/2020/05/10/use-csv-file-for-i18n/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afrontend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-25T13:51:15.000Z","updated_at":"2023-05-11T15:11:26.000Z","dependencies_parsed_at":"2023-01-31T16:10:14.495Z","dependency_job_id":null,"html_url":"https://github.com/afrontend/ary2json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/afrontend/ary2json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afrontend%2Fary2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afrontend%2Fary2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afrontend%2Fary2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afrontend%2Fary2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afrontend","download_url":"https://codeload.github.com/afrontend/ary2json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afrontend%2Fary2json/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262067871,"owners_count":23253686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T11:14:41.709Z","updated_at":"2025-06-26T12:31:26.039Z","avatar_url":"https://github.com/afrontend.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)\n\n# ary2json\n\n* Convert text array to JSON\n* Convert JSON to text array\n\n## Install\n\n```sh\nnpm install ary2json\n```\n\n## Usage (text array to JSON)\n\n```javascript\nconst { textPathsAryToObj, objToTextPathsAry, toJSONString } = require('ary2json')\nconst obj = textPathsAryToObj([[ '로그인', 'login', 'path1', 'path2', 'path3' ]], {\n  numberOfLanguageColumn: 2\n})\nconsole.log(toJSONString(obj))\n[\n  {\n    path1: {\n      path2: {\n        path3: '로그인'\n      }\n    }\n  },\n  {\n    path1: {\n      path2: {\n        path3: 'login'\n      }\n    }\n  }\n]\n```\n\n## Usage (JSON to text array)\n\n```javascript\nconst ko = {\n    path1: {\n      path2: {\n        path3: '로그인'\n      }\n    }\n  }\n\nobjToTextPathsAry(ko).forEach(function (s) {\n  console.log(s)\n})\n로그인; path1; path2; path3\n```\n\n## License\n\nMIT © [Bob Hwang](https://afrontend.github.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafrontend%2Fary2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafrontend%2Fary2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafrontend%2Fary2json/lists"}