{"name":"@tapjs/spawn","version":"4.0.1","description":"a built-in tap extension for t.spawn()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"4.0.1"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/spawn#readme","repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"module":"./dist/esm/index.js","engines":{"node":"20 || >=22"},"_id":"@tapjs/spawn@4.0.1","gitHead":"532287f65d814c7cb7872bf84b3d86b17d900e43","_nodeVersion":"22.10.0","_npmVersion":"11.0.0","dist":{"integrity":"sha512-ztF1Klv3pSK1YCslYaPBQtrydBiBntQe8BaKbFmVipWc7Dlogpnh7aCF16yjNOe7jL6kz5/2xvhY2XOUuAaymg==","shasum":"c220be5f20facacbdee60ced4132899c214cd5a9","tarball":"http://registry-npm.ywwl.com/@tapjs/spawn/download/@tapjs/spawn-4.0.1.tgz","fileCount":13,"unpackedSize":21441,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDFprjJTxV3OB0dwfoFo3djB3CkttO4Rm0BUZkSk+rZ5QIgdGMGlAGvR7FJSEBtP0w5fkyi/CgXQsCwAZ3pL2Ix/QM="}],"size":4590,"noattachment":false,"key":"/@tapjs/spawn/-/@tapjs/spawn-4.0.1.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/spawn_4.0.1_1740006967799_0.16944094121269515"},"_hasShrinkwrap":false,"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":1740006968024,"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"_cnpm_publish_time":1740006968024,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}