{"_id":"@tapjs/spawn@4.3.13","tap":{"typecheck":false},"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"dist":{"shasum":"9caabafa22130d67210ccb8567b4897c85495628","tarball":"http://registry-npm.ywwl.com/@tapjs/spawn/download/@tapjs/spawn-4.3.13.tgz","fileCount":13,"integrity":"sha512-CgRUFWbg7a9q5jdkx4MswFwy9Eo6NTXBVIJUccwH8BCSd0ETSv7ig9RwxC/HhKuMvfMw17IO9G1v5e4vTAkBCQ==","signatures":[{"sig":"MEUCIQDqNJQ4kO2sNpi/uJYmhwgj4xojmJzqor0iEodp5hw41AIgPIKabzSH5U+vBbb4vPcuROVwJZmFfpnt5aUDaGsZdzI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDbGgudFnLA6J0EBd9ySV29IINQfWaXPMT2UjqRQPraVwIgaPfaFVg6AcocnBPBxBe0jTnFNydaTrIRP9cd4oEIcaw="}],"unpackedSize":21459,"size":4625,"noattachment":false,"key":"/@tapjs/spawn/-/@tapjs/spawn-4.3.13.tgz"},"main":"./dist/commonjs/index.js","name":"@tapjs/spawn","tshy":{"main":true,"exports":{".":"./src/index.ts","./package.json":"./package.json"},"selfLink":false},"type":"module","types":"./dist/commonjs/index.d.ts","author":{"name":"Isaac Z. Schlueter"},"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":"6874ffcc3e671f64b5dbabdd25b26904d3e2ed84","license":"BlueOak-1.0.0","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"},"version":"4.3.13","_npmUser":{"name":"isaacs","email":"i@izs.me"},"homepage":"https://github.com/tapjs/tapjs/tree/main/src/spawn#readme","keywords":["tapjs plugin"],"repository":{"url":"git+ssh://git@github.com/tapjs/tapjs.git","path":"src/spawn","type":"git"},"_npmVersion":"12.2.0","description":"a built-in tap extension for t.spawn()","directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"_nodeVersion":"26.5.0","_hasShrinkwrap":false,"peerDependencies":{"@tapjs/core":"4.6.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/spawn_4.3.13_1793744151622_0.9497815692857309"},"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":1793744151697,"_cnpm_publish_time":1793744151697,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}