# chrome-trace-event

> A library to create a trace of your node app per Google's Trace Event format.

Latest version **1.0.4** (published 2024-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install chrome-trace-event
pnpm add chrome-trace-event
yarn add chrome-trace-event
bun add chrome-trace-event
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2024-05-29 |
| First published | 2018-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.0 |
| Dependencies | 0 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30 |
| Author | Trent Mick, Sam Saccone |
| Maintainers | samccone, susielu |
| Keywords | trace-event, trace, event, trace-viewer, google |

## Links

- npm: https://www.npmjs.com/package/chrome-trace-event
- Repository: https://github.com/samccone/chrome-trace-event
- Homepage: https://github.com/samccone/chrome-trace-event#readme
- Issues: https://github.com/samccone/chrome-trace-event/issues
- npm.io page: https://npm.io/package/chrome-trace-event

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2024-05-29
- 1.0.3 — 2021-04-08
- 1.0.2 — 2019-05-27
- 1.0.1 — 2019-05-26
- 1.0.0 — 2018-04-25
- 0.1.3 — 2018-04-14
- 0.1.2 — 2018-02-12
- 0.1.1 — 2018-01-15
- 0.1.0 — 2018-01-15

## README

[![Build Status](https://travis-ci.org/samccone/chrome-trace-event.svg?branch=master)](https://travis-ci.org/samccone/chrome-trace-event)

chrome-trace-event: A node library for creating trace event logs of program
execution according to [Google's Trace Event
format](https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU).
These logs can then be visualized with
[trace-viewer](https://github.com/google/trace-viewer) or chrome devtools to grok one's programs.

# Install

    npm install chrome-trace-event

# Usage

```javascript
const Trace = require("chrome-trace-event").Tracer;
const trace = new Trace({
    noStream: true
});
trace.pipe(fs.createWriteStream(outPath));
trace.flush();
```

# Links

* https://github.com/google/trace-viewer/wiki
* https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU

# License

MIT. See LICENSE.txt.

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