# time-grunt

> Display the elapsed execution time of grunt tasks

Latest version **2.0.0** (published 2018-11-01) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install time-grunt
pnpm add time-grunt
yarn add time-grunt
bun add time-grunt
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-11-01 |
| First published | 2013-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 7 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 513 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | grunt, tasks, measure, time, profile, stat, stats, perf, performance, tasks |

## Links

- npm: https://www.npmjs.com/package/time-grunt
- Repository: https://github.com/sindresorhus/time-grunt
- Homepage: https://github.com/sindresorhus/time-grunt#readme
- Issues: https://github.com/sindresorhus/time-grunt/issues
- npm.io page: https://npm.io/package/time-grunt

## Dependencies (7)

- [chalk](https://npm.io/package/chalk.md) ^1.0.0
- [hooker](https://npm.io/package/hooker.md) ^0.2.3
- [figures](https://npm.io/package/figures.md) ^1.0.0
- [date-time](https://npm.io/package/date-time.md) ^1.1.0
- [pretty-ms](https://npm.io/package/pretty-ms.md) ^2.1.0
- [text-table](https://npm.io/package/text-table.md) ^0.2.0
- [number-is-nan](https://npm.io/package/number-is-nan.md) ^1.0.0

## 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

- 2.0.0 (latest) — 2018-11-01
- 1.4.0 — 2016-07-20
- 1.3.0 — 2015-12-23
- 1.2.2 — 2015-10-20
- 1.2.1 — 2015-05-20
- 1.2.0 — 2015-05-06
- 1.1.1 — 2015-04-16
- 1.1.0 — 2015-02-24
- 1.0.0 — 2014-08-22
- 0.4.0 — 2014-07-10
- 0.3.2 — 2014-06-04
- 0.3.1 — 2014-03-20
- 0.2.10 — 2014-03-01
- 0.2.9 — 2014-02-01
- 0.2.8 — 2014-01-14
- … 11 more at https://npm.io/package/time-grunt/versions

## README

## Deprecated

Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.

---

# time-grunt [![Build Status](https://travis-ci.org/sindresorhus/time-grunt.svg?branch=master)](https://travis-ci.org/sindresorhus/time-grunt)

> Display the elapsed execution time of [grunt](http://gruntjs.com) tasks

![](screenshot.png)


## Install

```
$ npm install --save-dev time-grunt
```


## Usage

```js
// Gruntfile.js
module.exports = grunt => {
	// require it at the top and pass in the grunt instance
	require('time-grunt')(grunt);

	grunt.initConfig();
}
```


## Optional callback

If you want to collect the timing stats for your own use, pass in a callback:

```js
require('time-grunt')(grunt, (stats, done) => {
	// do whatever you want with the stats
	uploadReport(stats);

	// be sure to let grunt know when to exit
	done();
});
```


## Clean layout

The `watch` task and tasks that take less than 1% of the total time are hidden to reduce clutter.

Run grunt with `grunt --verbose` to see all tasks.

Run grunt with `grunt --quiet` to quiet all tasks including time-grunt.


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

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