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.

57 lines (56 loc) 1.31 kB
{ "name": "with-local-tmp-dir", "version": "5.1.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": "./dist/index.js", "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" }, "dependencies": { "@dword-design/chdir": "^2.0.0", "tmp-promise": "^3.0.0" }, "devDependencies": { "@dword-design/base": "^9.2.0", "@dword-design/functions": "^4.0.0", "fs-extra": "^10.0.0" }, "engines": { "node": ">=14" }, "publishConfig": { "access": "public" } }