# time-to-generate-tree

> Get the time it takes to generate the dependency tree for a file

Latest version **1.0.3** (published 2014-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install time-to-generate-tree
pnpm add time-to-generate-tree
yarn add time-to-generate-tree
bun add time-to-generate-tree
```

Provides the command `time-to-generate-tree`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2014-12-23 |
| First published | 2014-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Joel Kemp |
| Maintainers | mrjoelkemp |
| Keywords | dependency, tree, profiling, time, dependencies, module |

## Links

- npm: https://www.npmjs.com/package/time-to-generate-tree
- Repository: https://github.com/mrjoelkemp/node-time-to-generate-tree
- Issues: https://github.com/mrjoelkemp/node-time-to-generate-tree/issues
- npm.io page: https://npm.io/package/time-to-generate-tree

## Dependencies (5)

- [q](https://npm.io/package/q.md) ~1.1.2
- [columnify](https://npm.io/package/columnify.md) ~1.3.2
- [node-tictoc](https://npm.io/package/node-tictoc.md) ~1.1.0
- [dependency-tree](https://npm.io/package/dependency-tree.md) ~1.3.3
- [get-driver-scripts](https://npm.io/package/get-driver-scripts.md) ~1.0.1

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

- 1.0.3 (latest) — 2014-12-23
- 1.0.2 — 2014-12-23
- 1.0.1 — 2014-12-23

## README

### time-to-generate-tree [![npm](http://img.shields.io/npm/v/time-to-generate-tree.svg)](https://npmjs.org/package/time-to-generate-tree) [![npm](http://img.shields.io/npm/dm/time-to-generate-tree.svg)](https://npmjs.org/package/time-to-generate-tree)

> Computes the time it takes to generate the dependency trees for all application entry points within a directory

`npm install time-to-generate-tree`

### Usage

```js
var timeToTrees = require('time-to-generate-tree');

timeToTrees({
  // If you want to profile all entry points to your application (optional)
  directory: 'path/to/my/js/files',
  // If you want to profile a single file (optional)
  filename: 'path/to/a/file',
  success: function(err, timeData) {

  }
});
```

* You must supply either the `directory` or a `filename`
* The returned `timeData` is an object where the keys are the filenames and the values are the time it took to generate the
dependency trees.

* You may pass additional options supported by [`get-driver-scripts`](https://github.com/mrjoelkemp/node-get-driver-scripts)
to handle pulling driver scripts from a RequireJS build config or resolving aliased
paths via a requirejs config.

### Shell command

> Prints the time data in tabular form

*Requires a global install `npm install -g time-to-generate-tree`*

`time-to-generate-tree <directory>`

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