{"_id":"timed-tape","_rev":"4664811","name":"timed-tape","description":"Prints the time each tape test took","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"}],"time":{"modified":"2026-04-10T22:33:04.000Z","created":"2015-07-22T19:52:14.717Z","0.1.1":"2016-09-01T20:03:08.103Z","0.1.0":"2015-07-22T19:52:14.717Z"},"users":{},"author":{"name":"David Dias","email":"daviddias@ipfs.io"},"repository":{"type":"git","url":"git+https://github.com/diasdavid/timed-tape.git"},"versions":{"0.1.1":{"name":"timed-tape","version":"0.1.1","description":"Prints the time each tape test took","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"repository":{"type":"git","url":"git+https://github.com/diasdavid/timed-tape.git"},"keywords":["tape","time","measure"],"author":{"name":"David Dias","email":"daviddias@ipfs.io"},"license":"MIT","bugs":{"url":"https://github.com/diasdavid/timed-tape/issues"},"homepage":"https://github.com/diasdavid/timed-tape","gitHead":"68dcc5e4f066f6c5b1a4c16c2c778a7f8aad45fe","_id":"timed-tape@0.1.1","_shasum":"9b6e569f17e66c79f1eed2d25ff7962fc7418e49","_from":".","_npmVersion":"3.8.9","_nodeVersion":"4.4.4","_npmUser":{"name":"daviddias","email":"daviddias.p@gmail.com"},"dist":{"shasum":"9b6e569f17e66c79f1eed2d25ff7962fc7418e49","size":2035,"noattachment":false,"key":"/timed-tape/-/timed-tape-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/timed-tape/download/timed-tape-0.1.1.tgz"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/timed-tape-0.1.1.tgz_1472760186223_0.419128421228379"},"directories":{},"publish_time":1472760188103,"_hasShrinkwrap":false,"_cnpm_publish_time":1472760188103,"_cnpmcore_publish_time":"2021-12-16T13:35:19.869Z"},"0.1.0":{"name":"timed-tape","version":"0.1.0","description":"Prints the time each tape test took","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/diasdavid/timed-tape.git"},"keywords":["tape","time","measure"],"author":{"name":"David Dias","email":"daviddias@ipfs.io"},"license":"MIT","bugs":{"url":"https://github.com/diasdavid/timed-tape/issues"},"homepage":"https://github.com/diasdavid/timed-tape","gitHead":"4354f8ed53e4f4f50700257487de9557c32f4f1e","_id":"timed-tape@0.1.0","_shasum":"5e88c00fe1475cdaf94d579d5f752c3f12516d7c","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"daviddias","email":"daviddias.p@gmail.com"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"}],"dist":{"shasum":"5e88c00fe1475cdaf94d579d5f752c3f12516d7c","size":1809,"noattachment":false,"key":"/timed-tape/-/timed-tape-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/timed-tape/download/timed-tape-0.1.0.tgz"},"directories":{},"publish_time":1437594734717,"_hasShrinkwrap":false,"_cnpm_publish_time":1437594734717,"_cnpmcore_publish_time":"2021-12-16T13:35:20.064Z"}},"readme":"timed-tape\n==========\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n\ntimed-tape extends [tape](https://github.com/substack/tape) so that each test prints the time taken.\n\n## API\n\nPass the `tape` module into `timed-tape`:\n\n```js\nvar tape = require('timed-tape')(require('tape'))\n```\n\nThis will return a tape instance that prints the time that each test took.\n\n## Example\n\n```js\nvar test = require('timed-tape')(require('tape'));\n\ntest('Check addition', t => {\n  t.equal(1 + 1, 2, 'one plus one is two');\n  t.end();\n});\n\ntest('Check multiplication', t => {\n  t.equal(1 * 1, 1, 'one times one is one');\n  t.end();\n});\n```\n\nResulting output:\n\n```bash\n$ node mytest.js\nTAP version 13\n# Check addition\nok 1 one plus one is two\n# time: 17 ms\n# Check multiplication\nok 2 one times one is one\n# time: 17 ms\n\n1..2\n# tests 2\n# pass  2\n\n# ok\n```\n","_attachments":{},"homepage":"https://github.com/diasdavid/timed-tape","bugs":{"url":"https://github.com/diasdavid/timed-tape/issues"},"license":"MIT"}