{"id":22769695,"url":"https://github.com/bfontaine/vanish","last_synced_at":"2025-04-15T03:14:28.810Z","repository":{"id":30799078,"uuid":"34356148","full_name":"bfontaine/vanish","owner":"bfontaine","description":":sparkles: Temporary files and directories made easy","archived":false,"fork":false,"pushed_at":"2022-10-18T09:34:07.000Z","size":27,"stargazers_count":28,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T03:14:22.683Z","etag":null,"topics":["go","library","temporary-files"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/bfontaine/vanish/vanish","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/bfontaine.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-04-21T22:49:28.000Z","updated_at":"2024-05-25T13:03:12.000Z","dependencies_parsed_at":"2022-09-13T07:02:13.253Z","dependency_job_id":null,"html_url":"https://github.com/bfontaine/vanish","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fvanish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fvanish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fvanish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fvanish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfontaine","download_url":"https://codeload.github.com/bfontaine/vanish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248997079,"owners_count":21195799,"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":["go","library","temporary-files"],"created_at":"2024-12-11T15:14:00.537Z","updated_at":"2025-04-15T03:14:28.793Z","avatar_url":"https://github.com/bfontaine.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vanish\n\n**Vanish** is a minimal Go library to use temporary files and directories.\n\n[![GoDoc](https://godoc.org/github.com/bfontaine/vanish?status.svg)](https://godoc.org/github.com/bfontaine/vanish/vanish)\n[![Build Status](https://travis-ci.org/bfontaine/vanish.svg?branch=master)](https://travis-ci.org/bfontaine/vanish)\n\n## Install\n\n    go get github.com/bfontaine/vanish/v2\n\n## Usage\n\nVanish works with functions:\n\n```go\npackage main\n\nimport \"github.com/bfontaine/vanish/v2\"\n\nvanish.File(func(name string) {\n    // 'name' is a temporary file, use it here as you want, it’ll be deleted\n    // at the end of the function\n})\n\nvanish.Dir(func(name string) {\n    // here, 'name' is a directory\n})\n\nvanish.Env(func() {\n    // we can modify the environment here, it’ll be restored at the end of the\n    // function\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fvanish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfontaine%2Fvanish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fvanish/lists"}