Skip to content

feat(new tool): JSON to .env converter #349

Merged
sharevb merged 18 commits intosharevb:chore/all-my-stuffsfrom
hakimilg:feature/json-to-env-converter
May 3, 2026
Merged

feat(new tool): JSON to .env converter #349
sharevb merged 18 commits intosharevb:chore/all-my-stuffsfrom
hakimilg:feature/json-to-env-converter

Conversation

@hakimilg
Copy link
Copy Markdown

Summary

  • Adds a new converter tool under the Converter category that turns a flat JSON object into a .env file.
  • Keys are upper-cased by default; values are safely quoted when they contain whitespace, quotes, or env special characters (#, $, `, \).
  • Nested objects/arrays are JSON.stringify-ed and always quoted; null/undefined become "".
  • Follows the existing FormatTransformer pattern used by the other json-to-* converters.

Files

  • src/tools/json-to-env/ (service + tests + Vue component + e2e spec)
  • Registration in src/tools/index.ts (Converter category)
  • i18n key tools.json-to-env in locales/en.yml

Test plan

  • Unit tests: pnpm test:unit src/tools/json-to-env --run → 15/15
  • E2E: pnpm test:e2e (Playwright)
  • Manual: visit /json-to-env, paste a flat JSON, verify output + copy button

sharevb and others added 13 commits March 23, 2026 00:29
… and watermarker (CorentinTh#337)

* i18n(zh): fix incorrect translation in image-comparer

* i18n(zh): fix incorrect translation in heic-converter and watermarker
…entinTh#341)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Added sections for staging, stashing, inspecting, remote, tags, cherry-pick, and cleaning commands.
Include default /etc/nginx/mime.types

---------

Co-authored-by: sharevb <sharevb@gmail.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 17, 2026

@hakimilg is attempting to deploy a commit to the sharevb's projects Team on Vercel.

A member of the Team first needs to authorize it.

Converts a flat JSON object into a .env file. Keys are upper-cased,
values are safely quoted when they contain whitespace, quotes, or env
special characters (#, $, `, \). Nested objects and arrays are
JSON-stringified and always quoted; null/undefined become "".

Follows the existing FormatTransformer pattern used by the other
json-to-* converters, including i18n via useI18n and the built-in
.env download button.
@hakimilg hakimilg force-pushed the feature/json-to-env-converter branch from d2e86cd to b712ac4 Compare April 17, 2026 10:10
@sharevb sharevb force-pushed the chore/all-my-stuffs branch 6 times, most recently from 206c857 to 385a327 Compare April 19, 2026 17:22
@sharevb sharevb force-pushed the chore/all-my-stuffs branch from 385a327 to 7b15118 Compare April 19, 2026 17:56
…re/json-to-env-converter

# Conflicts:
#	Dockerfile
#	src/pages/Home.page.vue
@sharevb sharevb force-pushed the chore/all-my-stuffs branch 4 times, most recently from d4ec8e9 to 832ff90 Compare April 26, 2026 18:02
Remove onlyLocales configuration from AutoImport.
@sharevb sharevb merged commit b05e70d into sharevb:chore/all-my-stuffs May 3, 2026
4 of 7 checks passed
@sharevb
Copy link
Copy Markdown
Owner

sharevb commented May 3, 2026

Hi @hakimilg thanks for this PR now merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants