{"id":19426353,"url":"https://github.com/ausaf007/json-to-env","last_synced_at":"2025-02-25T05:16:06.380Z","repository":{"id":198681624,"uuid":"701309624","full_name":"ausaf007/json-to-env","owner":"ausaf007","description":"Simple bash script script to locally convert JSON files to .env format ","archived":false,"fork":false,"pushed_at":"2023-10-06T11:41:06.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T19:38:03.944Z","etag":null,"topics":["bash","cli","environment-variables","jq","json"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/ausaf007.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,"governance":null}},"created_at":"2023-10-06T11:22:41.000Z","updated_at":"2024-02-24T12:13:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab64d350-2efd-4be6-99a5-8ceb88b2d879","html_url":"https://github.com/ausaf007/json-to-env","commit_stats":null,"previous_names":["ausaf007/json-to-env"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ausaf007%2Fjson-to-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ausaf007%2Fjson-to-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ausaf007%2Fjson-to-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ausaf007%2Fjson-to-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ausaf007","download_url":"https://codeload.github.com/ausaf007/json-to-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240605842,"owners_count":19827985,"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":["bash","cli","environment-variables","jq","json"],"created_at":"2024-11-10T14:07:22.611Z","updated_at":"2025-02-25T05:16:06.323Z","avatar_url":"https://github.com/ausaf007.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# json_to_env\n\n`json_to_env` is a simple bash script utility to locally convert JSON files into `.env` format.\n\n## Requirements\n\n- `jq`: This script uses jq to parse and convert the JSON data.\n- Flat JSON Structure: The provided JSON file should have a flat structure. Nested JSON structures are not supported for conversion.\n\n## Usage\n\n```bash\n./json_to_env.sh \u003cinput_json_file\u003e \u003coutput_env_file\u003e\n```\n\n- `\u003cinput_json_file\u003e`: The path to your source JSON file.\n- `\u003coutput_env_file\u003e`: The path where you want the resulting .env file to be saved.\n\n### Example:\n\n```bash\n./json_to_env.sh config.json config.env\n```\n\n## Installation\n\n1. Clone this repository or download the `json_to_env.sh` file directly.\n2. Provide execute permissions to the script:\n\n```bash\nchmod +x json_to_env.sh\n```\n\n3. Ensure `jq` is installed. If not, you can generally install it using package managers:\n\nFor Ubuntu/Debian:\n```bash\nsudo apt-get install jq\n```\n\nFor macOS (using Homebrew):\n```bash\nbrew install jq\n```\n\nFor other distributions or platforms, please check the `jq` [official documentation](https://stedolan.github.io/jq/download/).\n\n## Contributing\n\nFeel free to fork this repository, make changes, and submit pull requests. Any kind of contributions are welcome!\n\n## License\n\n[MIT](https://github.com/ausaf007/json-to-env/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fausaf007%2Fjson-to-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fausaf007%2Fjson-to-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fausaf007%2Fjson-to-env/lists"}