UNPKG

with-local-tmp-dir

Version:

Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing.

68 lines (67 loc) 1.7 kB
{ "name": "with-local-tmp-dir", "version": "7.0.1", "description": "Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing.", "keywords": [ "cleanup", "cwd", "directory", "function", "jest", "local", "mocha", "path", "remove", "temp", "temporary", "test", "tmp", "with" ], "repository": "dword-design/with-local-tmp-dir", "funding": "https://github.com/sponsors/dword-design", "license": "MIT", "author": "Sebastian Landwehr <info@sebastianlandwehr.com>", "type": "module", "exports": { ".": { "default": "./dist/index.js", "types": "./dist/index.d.ts" } }, "main": "dist/index.js", "files": [ "dist" ], "scripts": { "checkUnknownFiles": "base checkUnknownFiles", "commit": "base commit", "depcheck": "base depcheck", "dev": "base dev", "lint": "base lint", "prepare": "base prepare", "prepublishOnly": "base prepublishOnly", "test": "base test", "typecheck": "base typecheck", "verify": "base verify" }, "dependencies": { "@dword-design/chdir": "^4.0.0", "@types/fs-extra": "^11.0.4", "p-retry": "^7.1.1" }, "devDependencies": { "@dword-design/base": "^16.1.4", "@playwright/test": "^1.57.0", "@types/tmp": "^0.2.6", "delay": "^7.0.0", "fs-extra": "^11.3.2" }, "packageManager": "pnpm@10.25.0+sha512.5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501", "engines": { "node": ">=22" }, "publishConfig": { "access": "public" } }