{"id":16818549,"url":"https://github.com/rubiin/sample-env","last_synced_at":"2025-10-26T20:44:34.154Z","repository":{"id":58052236,"uuid":"529788829","full_name":"rubiin/sample-env","owner":"rubiin","description":"Generate sample file from .env for your apps","archived":false,"fork":false,"pushed_at":"2025-03-10T02:45:09.000Z","size":1010,"stargazers_count":19,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T03:44:34.005Z","etag":null,"topics":["cli","env","environment","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubiin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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},"funding":{"github":["rubiin"],"patreon":null,"open_collective":null,"ko_fi":"rubiin","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"buy_me_a_coffee":"rubiin","thanks_dev":"rubiin"}},"created_at":"2022-08-28T07:06:56.000Z","updated_at":"2025-03-10T02:44:51.000Z","dependencies_parsed_at":"2024-05-03T16:42:41.215Z","dependency_job_id":"f26f1e4c-f12f-4f74-a349-c360fa3bed96","html_url":"https://github.com/rubiin/sample-env","commit_stats":{"total_commits":48,"total_committers":3,"mean_commits":16.0,"dds":0.0625,"last_synced_commit":"112074c8f6cd64c3f201880f784f9003ffb61429"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubiin%2Fsample-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubiin%2Fsample-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubiin%2Fsample-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubiin%2Fsample-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubiin","download_url":"https://codeload.github.com/rubiin/sample-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841209,"owners_count":20356443,"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","env","environment","nodejs"],"created_at":"2024-10-13T10:50:26.633Z","updated_at":"2025-10-26T20:44:29.122Z","avatar_url":"https://github.com/rubiin.png","language":"TypeScript","funding_links":["https://github.com/sponsors/rubiin","https://ko-fi.com/rubiin","https://buymeacoffee.com/rubiin","https://thanks.dev/rubiin"],"categories":[],"sub_categories":[],"readme":"# sample-env\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.npmjs.com/package/sample-env\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/sample-env\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/sample-env\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/sample-env\" alt=\"NPM Downloads\" /\u003e\u003c/a\u003e\n\n## About\n\nEffortlessly create sample environment files tailored to your projects with ease. This cli streamlines the process by effortlessly generating environment files, ensuring all sensitive information is excluded saving you the hassle of manually scrubbing secrets.\n\n## How to install\n\n- Install\n\n```sh\nnpm i sample-env -g\n```\n\n## Usage\n\n```sh\nsample-env --env .env --sample .env.example --banner \"hello world\" --removeComments --prefix REACT_APP_\n```\n\nThis command will:\n\n- take `.env` file\n- parse its keys and values\n- create banner text at the top of the file\n- only include keys that start with `REACT_APP_`\n- remove all comments\n- dump all the keys and values into the `.env.example` file\n\n\n## Supported arguments and commands\nThe cli takes these optional flags.\n* --env (default `.env`) - use this option if you want to use a different file name\n  * `--env .env.dev`\n* --sample (default `.env.sample`) - use this option if you want to use a output file name\n  * `--sample .env.example`\n* --banner - use this option if you want to add a custom banner text at start of file\n  * `--banner \"hello world\"`\n* --removeComments - use this option if you don't want to include comments in the file\n  * `--removeComments`\n* --prefix - use this option if you want to include only keys that start with a certain prefix\n  * `--prefix REACT_APP_` or `--prefix REACT_APP_ --prefix GATSBY_`\n\n## Help Usage\n\n```sh\nsample-env --help\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubiin%2Fsample-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubiin%2Fsample-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubiin%2Fsample-env/lists"}