{"id":16528999,"url":"https://github.com/nielse63/copy-env","last_synced_at":"2026-01-21T02:02:47.065Z","repository":{"id":129453018,"uuid":"611323223","full_name":"nielse63/copy-env","owner":"nielse63","description":"Automate managing example .env files","archived":false,"fork":false,"pushed_at":"2026-01-20T07:25:18.000Z","size":1349,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-20T16:16:32.328Z","etag":null,"topics":["cli","config","dotenv","env","environment","settings","utils"],"latest_commit_sha":null,"homepage":"https://nielse63.github.io/copy-env/","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/nielse63.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-08T15:34:25.000Z","updated_at":"2026-01-20T07:15:06.000Z","dependencies_parsed_at":"2023-12-26T07:26:26.703Z","dependency_job_id":"5e968e87-3f57-4536-8fe3-b602d889ac77","html_url":"https://github.com/nielse63/copy-env","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":"nielse63/typescript-repo-template","purl":"pkg:github/nielse63/copy-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielse63%2Fcopy-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielse63%2Fcopy-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielse63%2Fcopy-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielse63%2Fcopy-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nielse63","download_url":"https://codeload.github.com/nielse63/copy-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielse63%2Fcopy-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28622472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"online","status_checked_at":"2026-01-21T02:00:08.227Z","response_time":86,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","config","dotenv","env","environment","settings","utils"],"created_at":"2024-10-11T17:42:43.642Z","updated_at":"2026-01-21T02:02:47.046Z","avatar_url":"https://github.com/nielse63.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @nielse63/copy-env\n\n\u003e Automate managing example .env files\n\n\u003cdiv align=\"center\"\u003e\n  \u003cdiv\u003e\n    \u003cimg alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/nielse63/copy-env/pr-check.yml?style=for-the-badge\"\u003e\n    \u003cimg alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/github/nielse63/copy-env?style=for-the-badge\"\u003e\n    \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues-raw/nielse63/copy-env?style=for-the-badge\"\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/@nielse63/copy-env?style=for-the-badge\"\u003e\n    \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/nielse63/copy-env?style=for-the-badge\"\u003e\n  \u003c/div\u003e\n  \u003ca href=\"https://github.com/nielse63/copy-env\"\u003e\n    \u003cimg src=\"./docs/copy-env.png\" alt=\"nielse63/copy-env\" width=\"640\" height=\"320\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\nOftentimes, you'll want to be able to share and check in your `.env` files with your team or to remember which environment variables are necessary for your project. `copy-env` automatically copies your `.env` file, removes the secret values, and saves it to an `.env.sample` file.\n\n## Installation\n\nInstall the package globally to use the CLI:\n\n```bash\nnpm i -g @nielse63/copy-env\n```\n\nOr install it in your project for scoped CLI usage, and to use the API:\n\n```bash\nnpm i -D @nielse63/copy-env\n```\n\n## Usage\n\n### CLI\n\nInstall the package and simply run `copy-env` from the command line:\n\n```bash\n$ copy-env --help\nUsage: copy-env [options]\n\nAutomate managing example .env files\n\nOptions:\n  --cwd \u003cstring\u003e           Current working directory (default: \".\")\n  --src \u003cstring\u003e           Source file to read from (default: \".env\")\n  --dest \u003cstring\u003e          File to write to (default: \".env.sample\")\n  --ignore-regex \u003cstring\u003e  Regex string of what to omit from output (default: \"^#\")\n  --git-add                Stage the output file after update (default: false)\n  -V, --version            output the version number\n  -h, --help               display help for command\n```\n\n### API\n\nSee the view API on [GitHub Pages](https://nielse63.github.io/copy-env/modules.html).\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\". Don't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b scratch/my-feature`)\n3. Commit your Changes (`git commit -m 'added new feature'`)\n4. Push to the Branch (`git push origin scratch/my-feature`)\n5. Open a Pull Request\n\n## License\n\nDistributed under the MIT License. See [`LICENSE`](https://github.com/nielse63/copy-env/blob/main/LICENSE) for more information.\n\n## Contact\n\nProject Link: [https://github.com/nielse63/copy-env](https://github.com/nielse63/copy-env)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnielse63%2Fcopy-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnielse63%2Fcopy-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnielse63%2Fcopy-env/lists"}