{"id":22588974,"url":"https://github.com/matbour/dotenv-to-yaml","last_synced_at":"2025-07-06T22:35:36.838Z","repository":{"id":57215444,"uuid":"357588192","full_name":"matbour/dotenv-to-yaml","owner":"matbour","description":"Convert your dotenv files to their YAML equivalent.","archived":false,"fork":false,"pushed_at":"2021-04-13T17:28:00.000Z","size":108,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T21:45:46.818Z","etag":null,"topics":["cli","dotenv","yaml"],"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/matbour.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-13T14:45:16.000Z","updated_at":"2025-04-06T06:12:29.000Z","dependencies_parsed_at":"2022-09-04T03:23:14.655Z","dependency_job_id":null,"html_url":"https://github.com/matbour/dotenv-to-yaml","commit_stats":null,"previous_names":["matbour/dotenv-to-yaml"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matbour%2Fdotenv-to-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matbour%2Fdotenv-to-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matbour%2Fdotenv-to-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matbour%2Fdotenv-to-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matbour","download_url":"https://codeload.github.com/matbour/dotenv-to-yaml/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248305875,"owners_count":21081562,"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":["cli","dotenv","yaml"],"created_at":"2024-12-08T08:11:45.830Z","updated_at":"2025-04-10T21:45:58.158Z","avatar_url":"https://github.com/matbour.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotenv-to-yaml\n\nConvert your dotenv files to their YAML equivalent.\n\n## Motivations\n\nI initially developed this package to easily deploy Google Cloud Functions because the `gcloud` CLI does not understand\ndotenv files.\n\n\u003e Extracted from the [`gcloud functions deploy`](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--env-vars-file) docs:\n\u003e\n\u003e `--env-vars-file=FILE_PATH`\n\u003e\n\u003e Path to a local YAML file with definitions for all environment variables. All existing environment variables will be removed before the new environment variables are added.\n\n## Installation\n\nInstall locally (inside a project where a `package.json` is defined):\n\n```shell\nnpm install dotenv-to-yaml\n```\n\nNote: you may want to use the `--dev` flag if you are only interested in the CLI feature.\n\n## Usage\n\n### Command Line Interface\n\nGlobal usage:\n\n```shell\ndotenv-to-yaml [source] [destination]\n\nTransform a dotenv file to YAML one\n\nPositionals:\n  source       The source dotenv file or `-` if the file content is piped to\n               STDIN.                                 [string] [default: \".env\"]\n  destination  The destination YAML file or `-` to pipe the conversion result to\n               STDOUT.                           [string] [default: \".env.yaml\"]\n\n```\n\n#### Piping from STDIN\n\ndotenv-to-yaml supports piping the dotenv content through STDIN; the converted output will be sent to STDOUT.\n\nExample:\n\n```shell\ndotenv-to-yaml \u003c samples/bedrock.env\n```\n\nwill print:\n\n```yaml\nAUTH_KEY: qVQ9646_?j*46vlO^j$;cGY/|;4i7z%\u0026\u0026bk/O#rex[.72@*R8_{9h8#D$|8@7_Wj\nSECURE_AUTH_KEY: SoHEtm!HO3M2r#Z$3l]PX}aSc-hyLq95m_w7oY=a]fOM4b[/Q^=L`MB^lb`qAU-y\nLOGGED_IN_KEY: dt{MU\u003e/B9YO.V)M#3Ho=QmJc4s:/WC58r%CZTrQkx7jpgRvrO@iDYo[COU8X*=C|\nNONCE_KEY: '*#XT#t,y2ucBk87C;88;0(Cwq+zA1()WIwsR!P4TIzJQZPA2P$Saww8xQ(GDx_y]'\nAUTH_SALT: .J2bEZQvDKMM%kWwdgXFf/q/\u002610c7AtSbl%NLH.3j.}.4.|MPdC,Tnp$:|i#sF)y\nSECURE_AUTH_SALT: /DdIXg_TI|E`;/C#t24^\u003ei[@WG/1SsnoQU*bfmdf#p9e%Zo(xe?b9CJ(tZD;:^o3\nLOGGED_IN_SALT: c5AMtWe?Nut`]sVo5Sdw4:)N,togVS6L{IvRvCxi\u003e;VJyz4xDE$\u0026X#q4)JB\u003c#LUH\nNONCE_SALT: Nmfdg*9@x$tdb[TZj.1-p)(\u003cay]:k=:5u(lmH2bpi8]A|qAMm_AGajQ90ZQQI.f\u003c\n```\n\n#### Specifying source and destination\n\n```shell\ndotenv-to-yaml .env .env.yaml\n```\n\n### Node.js\n\n```javascript\nconst { dotenvToYAML } = require('dotenv-to-yaml');\n```\n\n### ESM / TypeScript\n\n```typescript\nimport { dotenvToYAML } from 'dotenv-to-yaml';\n// OR with default import:\nimport dotenvToYAML from 'dotenv-to-yaml';\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatbour%2Fdotenv-to-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatbour%2Fdotenv-to-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatbour%2Fdotenv-to-yaml/lists"}