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
JSON
{
"name": "with-local-tmp-dir",
"version": "6.0.0",
"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": "^6.2.1"
},
"devDependencies": {
"@dword-design/base": "^15.3.3",
"@playwright/test": "^1.54.2",
"@types/tmp": "^0.2.6",
"delay": "^6.0.0",
"fs-extra": "^11.3.1"
},
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748",
"engines": {
"node": ">=20"
},
"publishConfig": {
"access": "public"
}
}