{"id":15883561,"url":"https://github.com/0xch4z/with-tmp","last_synced_at":"2026-04-29T04:38:46.130Z","repository":{"id":115265323,"uuid":"188371652","full_name":"0xch4z/with-tmp","owner":"0xch4z","description":"Easily create and use temp dirs without worrying about clean up","archived":false,"fork":false,"pushed_at":"2020-06-02T00:30:46.000Z","size":547,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-09T05:07:02.305Z","etag":null,"topics":["node","tempdir","testing","typescript"],"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/0xch4z.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2019-05-24T07:11:42.000Z","updated_at":"2020-05-19T20:09:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"7da748f6-981a-4b9d-829e-528be699845b","html_url":"https://github.com/0xch4z/with-tmp","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/0xch4z/with-tmp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Fwith-tmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Fwith-tmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Fwith-tmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Fwith-tmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xch4z","download_url":"https://codeload.github.com/0xch4z/with-tmp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Fwith-tmp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32411539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T03:46:11.172Z","status":"ssl_error","status_checked_at":"2026-04-29T03:37:55.317Z","response_time":110,"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":["node","tempdir","testing","typescript"],"created_at":"2024-10-06T04:23:33.275Z","updated_at":"2026-04-29T04:38:46.116Z","avatar_url":"https://github.com/0xch4z.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# with-tmp [![Build Status](https://travis-ci.org/charliekenney23/with-tmp.svg?branch=master)](https://travis-ci.org/charliekenney23/with-tmp) [![Greenkeeper badge](https://badges.greenkeeper.io/Charliekenney23/with-tmp.svg)](https://greenkeeper.io/)\n\n### Easily create a temporary directory without having to worry about cleanup.\n\n```typescript\nimport withTmpdir from \"with-tmp\";\n\nawait withTmpdir(\"my-tmp-dir\", dir =\u003e {\n  const path = path.join(dir, \"my-file\");\n  fs.writeFileSync(path, \"content\");\n}); // tmpdir is cleaned up\n```\n\n### Do tasks from within the temporary directory without having to worry about restoring your environment.\n\n```typescript\nimport { withinTmpdir } from \"with-tmp\";\n\nprocess.cwd(); // =\u003e /home/me/workspace\nawait withinTmpdir(\"my-other-tmp-dir\", dir =\u003e {\n  process.cwd(); // =\u003e /private/var/folders/83/5913m0b1080000gn/T/my-other-tmp-dir2Ivp7V\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xch4z%2Fwith-tmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xch4z%2Fwith-tmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xch4z%2Fwith-tmp/lists"}