{"_id":"@tapjs/spawn@4.3.12","tap":{"typecheck":false},"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"dist":{"shasum":"09dbe7b074635a5b030df71eab9d77218b01dd63","tarball":"http://registry-npm.ywwl.com/@tapjs/spawn/download/@tapjs/spawn-4.3.12.tgz","fileCount":13,"integrity":"sha512-aAH+piOVePqAhVhlDfJo44YJ7QjtB3FaBIJmNip5QtFTYw+xt5D4tI2IxyKC3X94oE5f3PyicmisDz/pB3pydg==","signatures":[{"sig":"MEQCIBd1zedzBPcI20Z4YAKWUMudQBMRJncFGXbaCJxndpEAAiBQzveaLMeuCSHLO4uDCzv0Kkrl5uDF8BEccmyRU/dqRQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBvAWhb5fwN4t5aZg7c0xRX4DlkHpds1yyDvJU4JZT+4AiBb49yoFF2dnQHbhkLvFPCqo9qKIBqdylPo9bVDpp5B5g=="}],"unpackedSize":21459,"size":4626,"noattachment":false,"key":"/@tapjs/spawn/-/@tapjs/spawn-4.3.12.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":"8ab84eb1daae6dedbfcf07b8e0bf2c2a965ad81f","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.12","_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":"11.17.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.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/spawn_4.3.12_1788477742455_0.7593171579986191"},"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":1788477742546,"_cnpm_publish_time":1788477742546,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}