{"_id":"tap-only","_rev":"164771","name":"tap-only","description":"Get exclusive / focus tests for node-tap","dist-tags":{"latest":"0.0.5"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"time":{"modified":"2021-06-03T11:44:21.000Z","created":"2015-11-17T12:56:55.656Z","0.0.5":"2015-11-17T13:44:09.490Z","0.0.4":"2015-11-17T13:20:02.260Z","0.0.3":"2015-11-17T13:13:45.458Z","0.0.2":"2015-11-17T13:04:40.306Z","0.0.1":"2015-11-17T12:56:55.656Z"},"users":{},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"repository":{"type":"git","url":"git+https://github.com/jamestalmage/tap-only.git"},"versions":{"0.0.5":{"name":"tap-only","version":"0.0.5","description":"Get exclusive / focus tests for node-tap","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/tap-only.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"bin":{"tap-only":"bin/run-shim.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","bin/run.js","bin/run-shim.js"],"keywords":["tap","only","exclusive"],"peerDependencies":{"tap":"*"},"dependencies":{"fallback-cli":"^2.0.2"},"gitHead":"7fac8753a5d6c378544e2e52d944fed80543321e","bugs":{"url":"https://github.com/jamestalmage/tap-only/issues"},"homepage":"https://github.com/jamestalmage/tap-only#readme","_id":"tap-only@0.0.5","_shasum":"ee99cc0eced0aaa4d55cad428be62be874d9d248","_from":".","_npmVersion":"3.4.0","_nodeVersion":"4.1.2","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"ee99cc0eced0aaa4d55cad428be62be874d9d248","size":2359,"noattachment":false,"key":"/tap-only/-/tap-only-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/tap-only/download/tap-only-0.0.5.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"publish_time":1447767849490,"_cnpm_publish_time":1447767849490,"_hasShrinkwrap":false},"0.0.4":{"name":"tap-only","version":"0.0.4","description":"My fabulous module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/tap-only.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"bin":{"tap-only":"bin/run-shim.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","bin/run.js","bin/run-shim.js"],"keywords":["tap","only","exclusive"],"peerDependencies":{"tap":"*"},"dependencies":{"fallback-cli":"^2.0.2"},"gitHead":"648ec14c430f157d5e57bb79d863072985836017","bugs":{"url":"https://github.com/jamestalmage/tap-only/issues"},"homepage":"https://github.com/jamestalmage/tap-only#readme","_id":"tap-only@0.0.4","_shasum":"618d11a80f02ef8a561f405351b7f43816a01a38","_from":".","_npmVersion":"3.4.0","_nodeVersion":"4.1.2","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"618d11a80f02ef8a561f405351b7f43816a01a38","size":2241,"noattachment":false,"key":"/tap-only/-/tap-only-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/tap-only/download/tap-only-0.0.4.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"publish_time":1447766402260,"_cnpm_publish_time":1447766402260,"_hasShrinkwrap":false},"0.0.3":{"name":"tap-only","version":"0.0.3","description":"My fabulous module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/tap-only.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"bin":{"tap-only":"bin/run-shim.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","bin/run.js","bin/run-shim.js"],"keywords":["tap","only","exclusive"],"peerDependencies":{"tap":"*"},"dependencies":{"fallback-cli":"^2.0.2"},"gitHead":"bf505e11fe5d1fda4efcb657f42f47ce1774f145","bugs":{"url":"https://github.com/jamestalmage/tap-only/issues"},"homepage":"https://github.com/jamestalmage/tap-only#readme","_id":"tap-only@0.0.3","_shasum":"124cde8082b409724a3805801ae1e54aa986e893","_from":".","_npmVersion":"3.4.0","_nodeVersion":"4.1.2","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"124cde8082b409724a3805801ae1e54aa986e893","size":2215,"noattachment":false,"key":"/tap-only/-/tap-only-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tap-only/download/tap-only-0.0.3.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"publish_time":1447766025458,"_cnpm_publish_time":1447766025458,"_hasShrinkwrap":false},"0.0.2":{"name":"tap-only","version":"0.0.2","description":"My fabulous module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/tap-only.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"bin":{"tap-only":"bin/run-shim.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","bin/run.js","bin/run-shim.js"],"keywords":["tap","only","exclusive"],"peerDependencies":{"tap":"*"},"dependencies":{"fallback-cli":"^2.0.2"},"gitHead":"50ca08bc1bdc59249de7a5210bf3dd1c26654979","bugs":{"url":"https://github.com/jamestalmage/tap-only/issues"},"homepage":"https://github.com/jamestalmage/tap-only#readme","_id":"tap-only@0.0.2","_shasum":"e3ee7f07f6ff5ffa2bde7a99b92fc83071947055","_from":".","_npmVersion":"3.4.0","_nodeVersion":"4.1.2","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"e3ee7f07f6ff5ffa2bde7a99b92fc83071947055","size":1980,"noattachment":false,"key":"/tap-only/-/tap-only-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tap-only/download/tap-only-0.0.2.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"publish_time":1447765480306,"_cnpm_publish_time":1447765480306,"_hasShrinkwrap":false},"0.0.1":{"name":"tap-only","version":"0.0.1","description":"My fabulous module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/tap-only.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"bin":{"tap-only":"bin/run-shim.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tap","only","exclusive"],"peerDependencies":{"tap":"*"},"dependencies":{"fallback-cli":"^2.0.2"},"gitHead":"5002501e2488f2aa0a79b411adb68636468beb17","bugs":{"url":"https://github.com/jamestalmage/tap-only/issues"},"homepage":"https://github.com/jamestalmage/tap-only#readme","_id":"tap-only@0.0.1","_shasum":"b9efcd950631ced5c85315761f7a045c55a07c57","_from":".","_npmVersion":"3.4.0","_nodeVersion":"4.1.2","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"b9efcd950631ced5c85315761f7a045c55a07c57","size":1676,"noattachment":false,"key":"/tap-only/-/tap-only-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tap-only/download/tap-only-0.0.1.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"publish_time":1447765015656,"_cnpm_publish_time":1447765015656,"_hasShrinkwrap":false}},"readme":"# tap-only\n\n> Get exclusive/only/ focus tests for node-tap.\n\n\n## Install\n\n```sh\n$ npm install --save tap tap-only\n```\n\nImport `tap-only` in your tests in place of tap\n\n```js\n// test.js\nvar test = require('tap-only');\n\ntest('test name', function (t) {\n  t.is(...);\n});\n\n// when you want an exclusive test, just do this:\n\ntest.only('test name', function (t) {\n  // ...\n});\n```\n\nRun `tap` like you always do\n\n```sh\n$ tap test/*.js | tap-spec\n```\n\nEnjoy easy exclusive tests.\n\n\n## API\n\nSee [the source](https://github.com/jamestalmage/tap-only/blob/master/index.js) to understand how it works (it's simple).\n\n### test(...) \n\nidentical to tap.test\n\n### test.only(...)\n\nidentical to tap.test, but it disables all tests without the \"only\" modifier\n\n### test.start()\n\nThis will be called automatically for you on the next event loop if not disabled.\nThis tallies up the tests, determines if you are running in exclusive mode or not and calls\n`tap` with the filtered tests.\n\n### test.disableAutoStart()\n\nThis disables the automatic start. You will now be responsible for calling `test.start()` to get things rolling.\n\n\n## License\n\nMIT © [James Talmage](http://github.com/jamestalmage)\n","_attachments":{},"homepage":"https://github.com/jamestalmage/tap-only#readme","bugs":{"url":"https://github.com/jamestalmage/tap-only/issues"},"license":"MIT"}