{"id":15883454,"url":"https://github.com/0xch4z/tenv","last_synced_at":"2025-08-01T13:36:51.337Z","repository":{"id":57600310,"uuid":"199946675","full_name":"0xch4z/tenv","owner":"0xch4z","description":"Golang wrapper to set/unset temporary environment variables for testing","archived":false,"fork":false,"pushed_at":"2019-08-01T14:11:48.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-15T18:19:58.359Z","etag":null,"topics":["golang","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","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/0xch4z.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}},"created_at":"2019-08-01T00:17:51.000Z","updated_at":"2019-08-01T02:38:00.000Z","dependencies_parsed_at":"2022-08-24T13:37:22.148Z","dependency_job_id":null,"html_url":"https://github.com/0xch4z/tenv","commit_stats":null,"previous_names":["charliekenney23/tenv"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xch4z/tenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Ftenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Ftenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Ftenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Ftenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xch4z","download_url":"https://codeload.github.com/0xch4z/tenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Ftenv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260308107,"owners_count":22989804,"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":["golang","testing"],"created_at":"2024-10-06T04:22:35.550Z","updated_at":"2025-06-17T06:35:18.577Z","avatar_url":"https://github.com/0xch4z.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tenv [![Build Status][travis-ci-badge]][travis-ci] [![GoDoc][godoc-badge]][godoc]\n\n\u003e Set/unset temporary environment variables for testing\n\n## Installation\n\n```sh\ngo get github.com/charliekenney23/tenv\n```\n\n## Usage\n\n```go\n{\n  c := tenv.New()\n  defer c.Restore()\n\n  c.Set(\"foo\", \"bar\")\n  c.Unset(\"baz\")\n} // environment restored to initial state\n```\n\n\u0026copy; 2019 [Charles Kenney](https://github.com/charliekenney23)\n\n[travis-ci-badge]: https://travis-ci.org/Charliekenney23/tenv.svg?branch=master\n[travis-ci]: https://travis-ci.org/Charliekenney23/tenv\n[godoc-badge]: https://godoc.org/github.com/Charliekenney23/tenv?status.svg\n[godoc]: https://godoc.org/github.com/Charliekenney23/tenv\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xch4z%2Ftenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xch4z%2Ftenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xch4z%2Ftenv/lists"}