{"_id":"tap-closer","_rev":"4-85f776d890656d988379531d0562a656","name":"tap-closer","description":"Simple JS \"transform\" tool that will call window.close or process.exit when TAP output is complete","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"tap-closer","version":"1.0.0","description":"Simple JS \"transform\" tool that will call window.close or process.exit when TAP output is complete","main":"index.js","license":"MIT","bin":{"tap-closer":"./bin.js","tapcloser":"./bin.js"},"scripts":{"prepublish":"browserify instrument.js | derequire | uglifyjs -cm > bundle.js","test":"npm run prepublish && browserify test/*.js | node bin.js | smokestack | tap-spec"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"dependencies":{},"devDependencies":{"browserify":"^8.0.2","derequire":"^1.2.0","global":"^4.3.0","smokestack":"^3.0.0","tap-finished":"0.0.1","tap-spec":"^2.1.2","tape":"^3.0.3","uglify-js":"^2.4.16"},"repository":{"type":"git","url":"git://github.com/hughsk/tap-closer.git"},"keywords":["tap","tape","close","transform","prepend","instrument","end","exit"],"homepage":"https://github.com/hughsk/tap-closer","bugs":{"url":"https://github.com/hughsk/tap-closer/issues"},"gitHead":"d8ab092642c698bbc28a110b4e949a1dd9300483","_id":"tap-closer@1.0.0","_shasum":"4a9d3d4dcf48593d16331d0daa3bbb79cfeceebd","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.28","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"dist":{"shasum":"4a9d3d4dcf48593d16331d0daa3bbb79cfeceebd","tarball":"https://registry.npmjs.org/tap-closer/-/tap-closer-1.0.0.tgz","integrity":"sha512-GmMdwHiMaewwX+p/yL1/PTiNvBK6CEiZd6ncy5y2YTBTSSRiQWu+bCMxorraZfjpnPeq8U9RySaRrafkWHxZ2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLInfbTkl0IeCrxhvTPLp3ZThqjcRvy4BHzzvM/PYzFQIgf57mtuePNOCrIxx2ZxR9DWfKdmQtE0MhAvA5PnvksKA="}]}}},"readme":"# tap-closer\n![](http://img.shields.io/badge/stability-experimental-orange.svg?style=flat)\n![](http://img.shields.io/npm/v/tap-closer.svg?style=flat)\n![](http://img.shields.io/npm/dm/tap-closer.svg?style=flat)\n![](http://img.shields.io/npm/l/tap-closer.svg?style=flat)\n\nSimple JS \"transform\" tool that will call `window.close` or `process.exit` when\nTAP output is complete.\n\nUseful, for example, in combination with\n[smokestack](http://github.com/hughsk/smokestack) and\n[tape](http://github.com/substack/tape) and\n[browserify](http://github.com/substack/node-browserify) for testing npm modules\nin the browser:\n\n``` bash\nbrowserify test/*.js | tap-closer | smokestack | tap-spec\n```\n\nNote however that this isn't specific to browserify or smokestack or tape, you\ncan use this with any JavaScript tool that logs TAP output to your console.\n\n[![NPM](https://nodei.co/npm/tap-closer.png)](https://nodei.co/npm/tap-closer/)\n\n## CLI Usage\n\nThe CLI for `tap-closer` modifies your JavaScript file to capture `console.log`\ncalls and work out when a TAP test is finished, closing your browser or Node\nprocess once this happens. It accepts input from stdin only, and outputs to\nstdout only, so you would use it like so:\n\n``` bash\ncat bundle.js | tap-closer > bundle-closer.js\n```\n\n## Using Directly\n\nAll the CLI is doing is prepending the browserified contents of `instrument.js`\nto whatever JavaScript is being piped in. You can do this yourself with the\nmodule's `bundle.js` once installed, e.g.:\n\n``` bash\ncat node_modules/tap-closer/bundle.js bundle.js > bundle-closer.js\n```\n\nThough it's generally nicer/safer using the CLI :)\n\n## License\n\nMIT. See [LICENSE.md](http://github.com/hughsk/tap-closer/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"time":{"modified":"2022-06-27T03:49:13.172Z","created":"2014-12-29T00:50:27.031Z","1.0.0":"2014-12-29T00:50:27.031Z"},"homepage":"https://github.com/hughsk/tap-closer","keywords":["tap","tape","close","transform","prepend","instrument","end","exit"],"repository":{"type":"git","url":"git://github.com/hughsk/tap-closer.git"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"bugs":{"url":"https://github.com/hughsk/tap-closer/issues"},"license":"MIT","readmeFilename":"README.md"}