# timed-tape

> Prints the time each tape test took

Latest version **0.1.1** (published 2016-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install timed-tape
pnpm add timed-tape
yarn add timed-tape
bun add timed-tape
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-09-01 |
| First published | 2015-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | David Dias |
| Maintainers | daviddias |
| Keywords | tape, time, measure |

## Links

- npm: https://www.npmjs.com/package/timed-tape
- Repository: https://github.com/diasdavid/timed-tape
- Issues: https://github.com/diasdavid/timed-tape/issues
- npm.io page: https://npm.io/package/timed-tape

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-09-01
- 0.1.0 — 2015-07-22

## README

timed-tape
==========

[![](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)

timed-tape extends [tape](https://github.com/substack/tape) so that each test prints the time taken.

## API

Pass the `tape` module into `timed-tape`:

```js
var tape = require('timed-tape')(require('tape'))
```

This will return a tape instance that prints the time that each test took.

## Example

```js
var test = require('timed-tape')(require('tape'));

test('Check addition', t => {
  t.equal(1 + 1, 2, 'one plus one is two');
  t.end();
});

test('Check multiplication', t => {
  t.equal(1 * 1, 1, 'one times one is one');
  t.end();
});
```

Resulting output:

```bash
$ node mytest.js
TAP version 13
# Check addition
ok 1 one plus one is two
# time: 17 ms
# Check multiplication
ok 2 one times one is one
# time: 17 ms

1..2
# tests 2
# pass  2

# ok
```

---
_Source: https://npm.io/package/timed-tape · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
