{"name":"@tapjs/spawn","version":"4.3.3","keywords":["tapjs plugin"],"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","_id":"@tapjs/spawn@4.3.3","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":"ead0b0c75ed19a6a217e6f430996980721d3e6a8","tarball":"http://registry-npm.ywwl.com/@tapjs/spawn/download/@tapjs/spawn-4.3.3.tgz","fileCount":13,"integrity":"sha512-YSwCN+7sooEvICF3T3eB6mJy9kEn7AFDyCVH3M6uHiKNUXKj834nrHfKMZbaRydVFTOTGYupqOdLXsr7Czcljg==","signatures":[{"sig":"MEQCIFAfskmAVrKamPRHNqflts6/YSQ9jzPKPYbI3ZVIStYEAiBKbzuYIo+cLsfJpd/qSavCiLihNv3MhlAxxLVS5pZUVw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21425,"size":4611,"noattachment":false,"key":"/@tapjs/spawn/-/@tapjs/spawn-4.3.3.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":"fd72c5b62ebf0cd2caa05c3d526f318e55086fe1","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+ssh://git@github.com/tapjs/tapjs.git","path":"src/spawn","type":"git"},"_npmVersion":"11.10.0","description":"a built-in tap extension for t.spawn()","directories":{},"_nodeVersion":"25.6.1","_hasShrinkwrap":false,"peerDependencies":{"@tapjs/core":"4.5.1"},"_npmOperationalInternal":{"tmp":"tmp/spawn_4.3.3_1771452539931_0.27893846484040474","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":1771452540122,"_cnpm_publish_time":1771452540122,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}