{"id":19242681,"url":"https://github.com/scaffoldly/dotenv-out","last_synced_at":"2026-05-07T10:31:37.823Z","repository":{"id":57215421,"uuid":"381535155","full_name":"scaffoldly/dotenv-out","owner":"scaffoldly","description":"This CLI is a wrapper for dotenv and will output a resultant file with the compiled environment in a particular language format.","archived":false,"fork":false,"pushed_at":"2024-04-27T20:30:08.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T09:52:06.452Z","etag":null,"topics":["cli","dotenv","environment-variables","shell","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/scaffoldly.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-30T00:55:03.000Z","updated_at":"2024-04-27T20:30:11.000Z","dependencies_parsed_at":"2024-04-27T20:45:58.983Z","dependency_job_id":null,"html_url":"https://github.com/scaffoldly/dotenv-out","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/scaffoldly/dotenv-out","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldly%2Fdotenv-out","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldly%2Fdotenv-out/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldly%2Fdotenv-out/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldly%2Fdotenv-out/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scaffoldly","download_url":"https://codeload.github.com/scaffoldly/dotenv-out/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldly%2Fdotenv-out/sbom","scorecard":{"id":803074,"data":{"date":"2025-08-11","repo":{"name":"github.com/scaffoldly/dotenv-out","commit":"519298129b548e073b4ce311623ec816e5504308"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/push-main.yml:1","Warn: no topLevel permission defined: .github/workflows/release-published.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push-main.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/scaffoldly/dotenv-out/push-main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push-main.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/scaffoldly/dotenv-out/push-main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push-main.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/scaffoldly/dotenv-out/push-main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/push-main.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/scaffoldly/dotenv-out/push-main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-published.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/scaffoldly/dotenv-out/release-published.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-published.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/scaffoldly/dotenv-out/release-published.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-published.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/scaffoldly/dotenv-out/release-published.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-published.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/scaffoldly/dotenv-out/release-published.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T11:01:39.098Z","repository_id":57215421,"created_at":"2025-08-23T11:01:39.098Z","updated_at":"2025-08-23T11:01:39.098Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32733390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","dotenv","environment-variables","shell","typescript"],"created_at":"2024-11-09T17:15:03.903Z","updated_at":"2026-05-07T10:31:37.806Z","avatar_url":"https://github.com/scaffoldly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotenv-out\n\n![npm](https://img.shields.io/npm/v/dotenv-out)\n\nThis CLI is a wrapper for [dotenv](https://github.com/motdotla/dotenv) and will\noutput a resultant file with the compiled environment in a particular language\nformat.\n\n**NOTE**: The behavior of this mimics the same cascading and multi-file options of\n[dotenv-cli](https://github.com/entropitor/dotenv-cli), **with the exception**\nthat the `-c \u003carg\u003e` flag _DOES NOT_ process `*.local` files.\n\nCurrent output format support:\n\n- Dotenv: `-f dotenv` ([see template](./templates/.env.ejs))\n- Shell: `-f shell` ([see template](./templates/env.sh.ejs))\n- Typescript: `-f typescript` ([see template](./templates/env.ts.ejs))\n\nPRs are welcome for additional templates!\n\n## Running\n\n```shell\n# Show all options and examples\nnpx dotenv-out --help\n```\n\n```shell\n# Debug Output + Dryrun\nnpx dotenv-out -f typescript -o src -d\n\n# Generate ./src/env.ts using .env\nnpx dotenv-out -f typescript -o src\n```\n\nSee [usage](#usage) for more examples.\n\n### Within a project\n\n```shell\nyarn add --dev dotenv-out\n```\n\nIn `package.json`:\n\n```json\n  \"scripts\": {\n    \"dotenv\": \"dotenv-out -f typescript -o src\"\n  },\n```\n\n## Usage\n\n```\nUsage: dotenv-out [options]\n\nOptions:\n      --help       Show help  [boolean]\n      --version    Show version number  [boolean]\n  -f               Output format  [required] [choices: \"dotenv\", \"shell\", \"typescript\"]\n  -d               Dryrun + Debug (No output file will be written)  [boolean] [default: false]\n      --overwrite  Force overwrite if a source file is also a destination file. This will exclude source file from expansion as well  [boolean] [default: false]\n  -e               Path to .env file(s), in order of precedence  [array] [required] [default: \".env\"]\n      --sls        Include environment variables from serverless YAML file  [boolean] [default: false]\n      --slsYaml    Include environment variables in the provided Serverless YAML file  [string] [default: \"serverless.yml\"]\n  -o               Output directory for generated Typescript file  [required] [default: \".\"]\n  -c               Cascading env variables from files:\n                           .env.\u003carg\u003e (If not provided an \u003carg\u003e, defaults to `local`)\n                           .env\n\n\nExamples:\n  dotenv-out -f typescript -d                                    Dryrun+debug output using:\n                                                                       .env\n\n  dotenv-out -f typescript                                       Generate ./env.ts using:\n                                                                       .env\n\n  dotenv-out -f typescript -e .env                               Generate ./env.ts using:\n                                                                       .env\n\n  dotenv-out -f dotenv -e .env -o src                            Generate ./src/.env using:\n                                                                       .env\n\n  dotenv-out -f typescript -e .env -c                            Generate ./env.ts using:\n                                                                       .env.local\n                                                                       .env\n\n  dotenv-out -f typescript -e .env -c live                       Generate ./env.ts using:\n                                                                       .env.live\n                                                                       .env\n\n  dotenv-out -f typescript -e .env -e .other/.env                Generate ./env.ts using:\n                                                                       .env\n                                                                       .other/.env\n\n  dotenv-out -f typescript -e .env -e .other/.env -c             Generate ./env.ts using:\n                                                                       .env.local\n                                                                       .env\n                                                                       .other/.env.local\n                                                                       .other/.env\n\n  dotenv-out -f typescript -e .env -e .other/.env -c live        Generate ./env.ts using:\n                                                                       .env.live\n                                                                       .env\n                                                                       .other/.env.live\n                                                                       .other/.env\n\n  dotenv-out -f dotenv -e .env -e .other/.env -c live -o outdir  Generate ./outdir/.env using:\n                                                                       .env.live\n                                                                       .env\n                                                                       .other/.env.live\n                                                                       .other/.env\n```\n\n# License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaffoldly%2Fdotenv-out","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscaffoldly%2Fdotenv-out","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaffoldly%2Fdotenv-out/lists"}