# what-did-i-load

> what did i load? ---

Latest version **0.0.3** (published 2021-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install what-did-i-load
pnpm add what-did-i-load
yarn add what-did-i-load
bun add what-did-i-load
```

Provides the command `what-did-i-load`.

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-05-20 |
| First published | 2021-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 5 |
| Unpacked size | 25.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kashey |

## Links

- npm: https://www.npmjs.com/package/what-did-i-load
- npm.io page: https://npm.io/package/what-did-i-load

## Dependencies (5)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0
- [commander](https://npm.io/package/commander.md) ^7.2.0
- [puppeteer](https://npm.io/package/puppeteer.md) ^9.1.1
- [puppeteer-core](https://npm.io/package/puppeteer-core.md) ^9.1.1
- [chrome-aws-lambda](https://npm.io/package/chrome-aws-lambda.md) ^9.1.0

## Recent versions

- 0.0.3 (latest) — 2021-05-20
- 0.0.2 — 2021-05-15
- 0.0.1 — 2021-05-15

## README

what did i load?
---

# CLI
`npx what-did-i-load http://mysite.com`

```
npx what-did-i-load --help

Options:
  -w, --width <number>                 width (default: "1024")
  -h, --height <number>                height (default: "768")
  -dpr, --device-pixel-ratio <number>  device pixel ratio (default: "1")
  -ph, --per-host <flag>               list information per host (default: true)
  -pt, --per-type <flag>               list information per resource type (default: true)
  -f, --focus <type>                   focus on specific type
  --host <string>                      focus on specific host
  -lh, --ignore-hosts <hosts...>       ignore set of host
  --help                               display help for command
```

# API
`import {measure, createLocalBrowser} from 'what-did-i-load'`;

- `createLocalBrowser(width, height, dpr)` - creates a puppeteer instance with a given viewport
- `measure(browser, url)` - returns all resources requested by a given page

# AWS
In order to run in AWS/Vercel environment use createAWSBrowser command. 

# License
MIT

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