{"id":15698399,"url":"https://github.com/zaida04/config-convert","last_synced_at":"2025-07-01T18:06:37.951Z","repository":{"id":57205344,"uuid":"401177112","full_name":"zaida04/config-convert","owner":"zaida04","description":"🔧 Convert your config files from JS to JSON or vice-versa.","archived":false,"fork":false,"pushed_at":"2022-01-19T23:27:00.000Z","size":328,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T01:15:53.063Z","etag":null,"topics":["config","converter","js-to-json","json-to-js"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zaida04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-30T01:01:32.000Z","updated_at":"2023-12-10T03:14:59.000Z","dependencies_parsed_at":"2022-09-18T00:50:44.104Z","dependency_job_id":null,"html_url":"https://github.com/zaida04/config-convert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zaida04/config-convert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaida04%2Fconfig-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaida04%2Fconfig-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaida04%2Fconfig-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaida04%2Fconfig-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaida04","download_url":"https://codeload.github.com/zaida04/config-convert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaida04%2Fconfig-convert/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263013712,"owners_count":23399813,"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":["config","converter","js-to-json","json-to-js"],"created_at":"2024-10-03T19:26:49.665Z","updated_at":"2025-07-01T18:06:37.926Z","avatar_url":"https://github.com/zaida04.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `config-convert`  \n\n[![GitHub](https://img.shields.io/github/license/zaida04/config-convert)](https://github.com/zaida04/config-convert/blob/main/LICENSE)\n[![npm](https://img.shields.io/npm/v/config-convert?color=crimson\u0026logo=npm)](https://www.npmjs.com/package/config-convert)\n[![CI workflows](https://github.com/zaida04/config-convert/actions/workflows/ci.yml/badge.svg)](https://github.com/zaida04/config-convert/actions/workflows/ci.yml)\n\n🚀 Need to convert a JS config file to JSON or vice-versa? Are you also very lazy and want a tool to do this for you? Welcome to config-convert.\n\n## 📥 Installation\nYou can install this package from [NPM](https://www.npmjs.com/package/config-convert)\n- `npm install -g config-convert`  \n- `yarn global add config-convert`\n\n## ⚡ Usage\n```\nconfig-convert -f \u003cinput_file\u003e\n\nOptions:\n  -f, --file     Path to the file to convert.                [string] [required]\n  -t, --to       What format to convert to               [choices: \"js\", \"json\"]\n  -o, --output   The name of the output file.                           [string]\n      --es6      For converting to JS, whether to use es6 exports.     [boolean]\n  -b, --baseDir  Set the base dir of where to start the path.           [string]\n```\n### Examples\nSay we have a directory that looks like this:\n```\nyour-project/\n├─ .eslintrc.js\n├─ src/\n├─ package.json\n```\nYou have your `.eslintrc.js` file that you want to convert to `.eslintrc.json`.   \nSimply run `config-convert -f .eslintrc.js` and voila! Converted and written to a `.eslintrc.json` file! \n\n## ✋ Contributing\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nPlease ensure any and all commits pass our tests, linting, and build steps\n  \n## ⚖️ LICENSE\nLicensed under the [MIT License](https://github.com/zaida04/config-convert/blob/main/LICENSE)\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaida04%2Fconfig-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaida04%2Fconfig-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaida04%2Fconfig-convert/lists"}