# @tracerbench/trace-event

> Chrome Trace Events interfaces

Latest version **8.0.0** (published 2022-08-30) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @tracerbench/trace-event
pnpm add @tracerbench/trace-event
yarn add @tracerbench/trace-event
bun add @tracerbench/trace-event
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 8.0.0 |
| Published | 2022-08-30 |
| First published | 2020-07-21 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 31.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 250 |
| Author | Kris Selden |
| Maintainers | tsubomi, krisselden, lynchbomb, spham92 |
| Keywords | chrome, trace event, typescript |

## Links

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

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 8.0.0 (latest) — 2022-08-30
- 7.0.0 — 2022-04-14
- 6.1.1 — 2021-12-01
- 6.1.0 — 2021-05-19
- 6.0.0 — 2021-05-12
- 5.3.6 — 2021-03-16
- 5.3.5 — 2021-03-12
- 5.3.4 — 2021-03-03
- 5.3.3 — 2021-02-26
- 5.3.2 — 2021-02-25
- 5.3.1 — 2021-02-11
- 5.3.0 — 2021-02-11
- 5.2.0 — 2021-02-01
- 5.1.0 — 2021-01-13
- 5.0.0 — 2021-01-11
- … 24 more at https://npm.io/package/@tracerbench/trace-event/versions

## README

# @tracerbench/trace-event

Typescript interfaces and constants enum for Chrome Devtools Protocol traces.

The Constants enum is a const enum so if you are compiling with tsc it will compile out.

## Example

```ts
import type { MetadataTraceEvent, TraceEvent, TraceStreamJson } from '@tracerbench/trace-event';
import { Constants } from '@tracerbench/trace-event';
import { readFileSync } from 'fs';
const trace: TraceEvent[] | TraceStreamJson = JSON.parse(readFileSync('trace.json', 'utf8'));
const traceEvents = Array.isArray(trace) ? trace : trace.traceEvents;
traceEvents.sort((a, b) => a.ts - b.ts);
const metadata: MetadataTraceEvent[] = traceEvents.filter((event) => event.ph === Constants.TRACE_EVENT_PHASE_METADATA);
```

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