{"id":13826125,"url":"https://github.com/bcomnes/p-temporary-directory","last_synced_at":"2025-10-17T04:59:16.399Z","repository":{"id":57317439,"uuid":"199470351","full_name":"bcomnes/p-temporary-directory","owner":"bcomnes","description":"Async/promise tmp dirs with cleanup.","archived":false,"fork":false,"pushed_at":"2024-10-24T17:50:10.000Z","size":77,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T19:11:14.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/p-temporary-directory","language":"JavaScript","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/bcomnes.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}},"created_at":"2019-07-29T14:37:01.000Z","updated_at":"2024-10-24T17:50:12.000Z","dependencies_parsed_at":"2024-01-18T04:07:18.528Z","dependency_job_id":"6fcc3892-cdc0-4f20-ac3c-0af4d0ba39a3","html_url":"https://github.com/bcomnes/p-temporary-directory","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fp-temporary-directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fp-temporary-directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fp-temporary-directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fp-temporary-directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcomnes","download_url":"https://codeload.github.com/bcomnes/p-temporary-directory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250330585,"owners_count":21413001,"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":[],"created_at":"2024-08-04T09:01:32.446Z","updated_at":"2025-10-17T04:59:11.355Z","avatar_url":"https://github.com/bcomnes.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# p-temporary-directory\n[![latest version](https://img.shields.io/npm/v/p-temporary-directory.svg)](https://www.npmjs.com/package/p-temporary-directory)\n[![Actions Status](https://github.com/bcomnes/p-temporary-directory/workflows/tests/badge.svg)](https://github.com/bcomnes/p-temporary-directory/actions)\n[![Coverage Status](https://coveralls.io/repos/github/bcomnes/p-temporary-directory/badge.svg?branch=master)](https://coveralls.io/github/bcomnes/p-temporary-directory?branch=master)\n[![downloads](https://img.shields.io/npm/dm/p-temporary-directory.svg)](https://npmtrends.com/p-temporary-directory)\n\nThe same as [temporary-directory](https://github.com/maxogden/temporary-directory) but with promises.\n\n```\nnpm install p-temporary-directory\n```\n\n## Usage\n\n``` js\nconst tmp = require('p-temporary-directory')\nconst tmpCb = require('p-temporary-directory/cb') // same as temporary-directory\n\nasync function usuallyATest() {\n  const [dir, cleanup] = await tmp()\n  // use dir\n  //...\n\n  await cleanup()\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcomnes%2Fp-temporary-directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcomnes%2Fp-temporary-directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcomnes%2Fp-temporary-directory/lists"}