{"name":"@tapjs/spawn","version":"4.0.2","keywords":["tapjs plugin"],"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","_id":"@tapjs/spawn@4.0.2","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"homepage":"https://github.com/tapjs/tapjs/src/spawn#readme","bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"tap":{"typecheck":false},"dist":{"shasum":"8de3c94c7972505f02d5f00a1ae7c2aa61d35b85","tarball":"http://registry-npm.ywwl.com/@tapjs/spawn/download/@tapjs/spawn-4.0.2.tgz","fileCount":13,"integrity":"sha512-CNOrZFXh+mm2iul/cGRgVA4HMv9GxmtbgQSICMjRrj8VLDzMboW862P+wEvfYrHeXdCGAGWKqTIcsX5pXQVQRA==","signatures":[{"sig":"MEUCIAKJpz2MBtfurdhVlMNXEBGOsEKOhkpq7Q5iYNrk3q5GAiEA+eym2lLi7mjbQY2V98rz0H0lMQmS6DigMxwkr2O5070=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21442,"size":4579,"noattachment":false,"key":"/@tapjs/spawn/-/@tapjs/spawn-4.0.2.tgz"},"main":"./dist/commonjs/index.js","tshy":{"main":true,"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":"20 || >=22"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"gitHead":"cbeb31514ade01022a949b8cea3bf116cf1b289c","scripts":{"snap":"tap","test":"tap","format":"prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache","prepare":"tshy","presnap":"npm run prepare","pretest":"npm run prepare","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"repository":{"url":"git+https://github.com/tapjs/tapjs.git","type":"git"},"_npmVersion":"11.4.2","description":"a built-in tap extension for t.spawn()","directories":{},"_nodeVersion":"24.4.1","_hasShrinkwrap":false,"peerDependencies":{"@tapjs/core":"4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/spawn_4.0.2_1759442138592_0.9359172355510053","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@tapjs/spawn`\n\nA default tap plugin providing `t.spawn()`.\n\n## USAGE\n\nThis plugin is installed with tap by default. If you had\npreviously removed it, you can `tap plugin add @tapjs/spawn` to\nbring it back.\n\n### Interface `SpawnOpts`\n\nOptions for `t.spawn()`\n\nAll of the normal Base and Extra options are also allowed.\n\n- `cwd` - string, the current working directory of the subprocess\n- `env` - Environment variables for the subprocess. Defaults to\n  `process.env`\n- `stdio` - ChildProcess `stdio` option. Standard output is\n  always set to `'pipe'`, because that's how it communicates test\n  results, and file descriptor 3 is set to an IPC channel for\n  sending timeout signals.\n- `command` (internal) - the command to run (set by first\n  argument to t.spawn)\n- `args` (internal) - arguments to subprocess (set by second\n  argument to t.spawn)\n- `exitCode` (internal) - Set on exit. The exit code of the\n  process, or null if terminated with a signal.\n- `signal` (internal) - Set on exit. Terminating signal, or null\n  of not terminated with a signal.\n\n### `t.spawn(cmd, [args], [options], [name]): PromiseWithSpawn`\n\nArguments:\n\n- `cmd` `string` - The command to run\n- `args` (optional) `string | string[]` - Arguments to pass to\n  the command.\n- `options` (optional) `SpawnOpts` object\n\nSpawns a process when the test starts, parsing its standard\noutput as a TAP stream.\n\nThis is how the tap CLI runs test programs.\n\nReturns a Promise that resolves when the test is complete. The\n`subtest` member on the Promise is a\n[`Spawn`](https://tapjs.github.io/tapjs/classes/_tapjs_core.spawn.Spawn.html)\ninstance.\n","publish_time":1759442138809,"_cnpm_publish_time":1759442138809,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}