{"name":"@tapjs/core","version":"4.5.6","author":{"url":"https://blog.izs.me","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"BlueOak-1.0.0","_id":"@tapjs/core@4.5.6","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"homepage":"https://github.com/tapjs/tapjs/tree/main/src/core#readme","bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"tap":{"coverage-map":"map.js"},"dist":{"shasum":"2069ea0afa6e82c03e444460eabefa8ff6b750a4","tarball":"http://registry-npm.ywwl.com/@tapjs/core/download/@tapjs/core-4.5.6.tgz","fileCount":213,"integrity":"sha512-eBPsRSBhx+vddAjcyhP90hCVgj+vlAlZor/FLo2TIe02JAEzpkJTSAvxm4u/oOzAMYClYp6DrjCVPF42Nh+q8A==","signatures":[{"sig":"MEUCIQCiS2OCI3DOTNlT1vT3B1kr7kOSxX0B3+muuQsyTy4voAIgNq85mxYgwpFOmQ9NLdKcX6Dyk26TuOD8HLDtUuvAmSc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":877770,"size":165366,"noattachment":false,"key":"/@tapjs/core/-/@tapjs/core-4.5.6.tgz"},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./proc":"./src/proc.ts","./package.json":"./package.json"},"selfLink":false},"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"}},"./proc":{"import":{"types":"./dist/esm/proc.d.ts","default":"./dist/esm/proc.js"},"require":{"types":"./dist/commonjs/proc.d.ts","default":"./dist/commonjs/proc.js"}},"./package.json":"./package.json"},"gitHead":"e79377683b8ec7853984771353b16175050b2541","scripts":{"snap":"tap","test":"tap","format":"prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache","prepare":"bash -c 'if [ -d src ]; then tshy; fi'","presnap":"npm run prepare","pretest":"npm run prepare","typedoc":"typedoc"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"repository":{"url":"git+ssh://git@github.com/tapjs/tapjs.git","path":"src/core","type":"git"},"_npmVersion":"10.9.7","description":"pluggable core of node-tap","directories":{},"_nodeVersion":"22.22.2","dependencies":{"diff":"^8.0.2","minipass":"^7.0.4","tap-yaml":"4.4.2","tcompare":"9.3.2","tap-parser":"18.3.4","@tapjs/test":"4.4.6","signal-exit":"4.1","@tapjs/stack":"4.3.3","trivial-deferred":"^2.0.0","async-hook-domain":"^4.0.1","is-actual-promise":"^1.0.1","@tapjs/processinfo":"^3.1.10"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_4.5.6_1777657035917_0.7668573754399237","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@tapjs/core`\n\nThis is the pluggable core of node-tap.\n\nThe `TestBase` class has the basic flow-control aspects of a tap\n`Test` object, but only the `t.pass()` and `t.fail()` assertions.\n\nAll other assertions and features are added via plugins.\n\nFull documentation available in [the\ntypedocs](https://tapjs.github.io/tapjs/modules/_tapjs_core.html).\n\n## Class `Base`\n\nThis is the base class of all sorts of test objects. It inherits\nfrom [minipass](https://isaacs.github.io/minipass/).\n\n## Class `TestBase`\n\nThis provides the core flow control and `TAP` generation\nfacilities. The `Test` class inherits from this.\n\n## Class `Spawn`\n\nA child test class representing a child process that emits `TAP`\non its standard output.\n\n## Class `Worker`\n\nA child test class representing a worker thread that emits `TAP`\non its standard output.\n\n## Class `Stdin`\n\nA child test class representing `TAP` parsed from standard input.\n\n## Class `TapFile`\n\nA child test class representing a file containing `TAP` data.\n\n## Class `Counts`\n\nAn object used to count pass, fail, todo, skip, total,\nand completed tests.\n\n## Class `Lists`\n\nAn object containing lists of test results.\n\n## Class `TestPoint`\n\nAn object representing a single `ok`/`not ok` test point.\n\n## Class `Minimal`\n\nA very minimal Test class with no plugins, which can be used in\ntap internal tests.\n\nIt is essentially just the TestBase class, but automatically\nstarting in the constructor, and with a .test() method so that it\ncan be used somewhat like a \"normal\" Test instance.\n\nThe reason that this method does not live on TestBase itself is\nthat it would make it more awkward to define on the Test class,\nwith all its plugins and extensions.\n\nOnly useful if you want a Test without any plugins, for some\nreason.\n\n## `proc`, `argv`, `cwd`, `env`\n\nCaptured values of `process`, `process.argv`, `process.cwd()`,\nand `process.env` at the start of the process, in case they\nchange later on or are not available for some other reason.\n\n## `tapDir`\n\nThe string path to the location of `@tapjs/core`.\n\n## `mainScript(defaultName = 'TAP'): string`\n\nThe path to the main module that node ran.\n\n## `TapPlugin<PluginValue, OptionsValue>`\n\nThe type of a plugin function which returns `PluginValue` and\noptionally which takes `OptionsValue` as options.\n\n## `Extra`\n\nThe extra info passed to assertions.\n\nExtended by BaseOpts, TestBaseOpts, and ultimately TestOpts,\nsince any subtest is also an assertion, and can take all the same\nassertion options.\n","publish_time":1777657036122,"_cnpm_publish_time":1777657036122,"dist-tags":{"latest":"4.6.1","pre":"1.0.0"}}