{"id":15286524,"url":"https://github.com/ofirelarat/text-format-converter","last_synced_at":"2026-05-01T12:32:20.687Z","repository":{"id":57240377,"uuid":"440225670","full_name":"ofirelarat/text-format-converter","owner":"ofirelarat","description":"package to convert differents text formats","archived":false,"fork":false,"pushed_at":"2022-11-02T19:36:57.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T11:00:13.768Z","etag":null,"topics":["converter","csv","json","xml","yaml"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/format-cnv","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ofirelarat.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-20T15:53:28.000Z","updated_at":"2022-01-14T16:56:55.000Z","dependencies_parsed_at":"2022-08-29T21:23:33.367Z","dependency_job_id":null,"html_url":"https://github.com/ofirelarat/text-format-converter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ofirelarat/text-format-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofirelarat%2Ftext-format-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofirelarat%2Ftext-format-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofirelarat%2Ftext-format-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofirelarat%2Ftext-format-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ofirelarat","download_url":"https://codeload.github.com/ofirelarat/text-format-converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofirelarat%2Ftext-format-converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32497811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["converter","csv","json","xml","yaml"],"created_at":"2024-09-30T15:16:16.812Z","updated_at":"2026-05-01T12:32:20.649Z","avatar_url":"https://github.com/ofirelarat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# text-format-converter\n\njs package for convert different format of text file\n\nlets say you need yaml configuration and you already have json file with the same data,\njust use this package and convert the file to yaml.\n\n## installation\n```sh\nnpm i format-cnv\n```\nor install globally for cli usage\n```sh\nnpm i -g format-cnv\n```\n\n## Code usage\n```javascript\nconst {convertCSVToObject} = require(\"format-cnv/lib\");\n\nconst csvObj = convertCSVToObject(`fname,lname\nofir, elarat\nfisrtname, lastname`);\n\nconsole.log(csvObj)\n```\n\n### Functions:\n\n|       function          |         description                  | [input] [output]   | \n|-------------------------|--------------------------------------|--------------------|\n| convertCSVToObject      | convert csv string format to object  | [string] [object] |\n| convertObjectToCSV      | convert object to csv string foramt  | [object] [string] |\n| convetXMLToObject       | convert xml string format to object  | [string] [object] |\n| convertObjectToXML      | convert object to xml string foramt  | [object] [string] |\n| convetYAMLToObject      | convert yaml string format to object | [string] [object] |\n| convertObjectToYAML     | convert object to yaml string foramt | [object] [string] |\n| convertJSONToObject     | convert json string format to object | [string] [object] |\n| convertObjectToJSON     | convert object to json string foramt | [object] [string] |\n| convertb64ToUTF8        | convert base64 string UTF8 object    | [string] [string] |\n| convertTextToBase64     | convert string to base64 string      | [string] [string] |\n\n\n## CLI usage\n\n```sh\nUsage: -i \u003cinput-file\u003e -it \u003cinput-type\u003e -o \u003coutput-file\u003e -ot \u003coutput-type\u003e\n```\n\n|       ALIAS             |         DESCRIPTION               |           TYPE             |  \n|-------------------------|-----------------------------------|----------------------------|\n|      --help             | Show help                         |            [boolean]       |\n|      --version          | Show version number               |            [boolean]       |\n|  -i, --inputFile        |  input file path                  |   [string] [required]      |\n|      --it, --inputType  | input file type: JSON/YAML/XML..  |  [string] [required]       |\n|  -o, --outputFile       |   output file path                | [string] {console if null} |\n|      --ot, --outputType |  output file type: JSON/YAML/XML..| [string] [required]        |\n\nThe supported format for now are:\n- JSON\n- XML\n- YAML\n- CSV\n\n### Examples:\n- JSON To YAML\n    \u003e format-cnv -i /sample.json --it JSON -o /output.yaml --ot YAML\n\n- JSON To XML\n    \u003e format-cnv -i /sample.json --it JSON -o /output.xml --ot XML\n\n- YAML To JSON\n    \u003e format-cnv -i /sample.yaml --it YAML -o /output.json --ot JSON\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofirelarat%2Ftext-format-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofirelarat%2Ftext-format-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofirelarat%2Ftext-format-converter/lists"}