https://github.com/micmro/har-format-ts-declaration
TypeScript typing for HAR (HTTP Archive) 1.2
https://github.com/micmro/har-format-ts-declaration
har typescript typings
Last synced: 6 months ago
JSON representation
TypeScript typing for HAR (HTTP Archive) 1.2
- Host: GitHub
- URL: https://github.com/micmro/har-format-ts-declaration
- Owner: micmro
- License: mit
- Created: 2017-02-28T09:04:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-30T06:17:55.000Z (over 8 years ago)
- Last Synced: 2025-03-27T08:11:25.740Z (7 months ago)
- Topics: har, typescript, typings
- Size: 8.79 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# har-format-ts-declaration
[](https://www.npmjs.com/package/@types/har-format)TypeScript definitions (aka typings) for the HAR (HTTP Archive) file format (version 1.2).
# Usage
## Installation
The typings are on NPM, so you can simply:
```
npm install --save @types/har-format
```## Example usage
```Typescript
import { Har } from "har-format";function getNonRedirectEntries(file: Har){
return file.log.entries.filter(e => !e.response.redirectURL);
}
```Originally based on the HAR typings created for [PerfCascade](https://github.com/micmro/PerfCascade).
## Specs and resources
- [W3C HAR Spec](https://w3c.github.io/web-performance/specs/HAR/Overview.html)
- [HAR 1.2 Spec](http://www.softwareishard.com/blog/har-12-spec)