# lighthouse-test

> Bare bones lighthouse testing CLI tool.

Latest version **0.0.1** (published 2019-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install lighthouse-test
pnpm add lighthouse-test
yarn add lighthouse-test
bun add lighthouse-test
```

Provides the command `lighthouse-test`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-11-12 |
| First published | 2019-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Franklin Tarter |
| Maintainers | franklintarter |

## Links

- npm: https://www.npmjs.com/package/lighthouse-test
- Repository: https://github.com/franklintarter/lighthouse-test
- Homepage: https://github.com/franklintarter/lighthouse-test#readme
- Issues: https://github.com/franklintarter/lighthouse-test/issues
- npm.io page: https://npm.io/package/lighthouse-test

## Dependencies (5)

- [chai](https://npm.io/package/chai.md) ^4.2.0
- [mocha](https://npm.io/package/mocha.md) ^6.2.2
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.1
- [lighthouse](https://npm.io/package/lighthouse.md) ^5.6.0
- [chrome-launcher](https://npm.io/package/chrome-launcher.md) ^0.12.0

## Recent versions

- 0.0.1 (latest) — 2019-11-12

## README

# Lighthouse Testing

> A simple CLI tool for automated lighthouse testing.

## Setup

Intstall

```shell
yarn add lighthouse-test
```

Run

```shell
lighthouse-test https://google.com 50
# First param is the URL to test
# Second param is the minimum score required to pass the test
```

### Use In Project

package.json

```json
{
  // ...
  "scripts": {
    "lighthouse": "lighthouse-test http://localhost:9000 90"
  }
  // ..
}
```

## Future Improvements

- Use a config file, or config settings in package.json
- Multiple URLS
- Turn off certain tests, i.e. ignore PWA score

### Inspiration

Code & concepts inspired by this [article](https://dev.to/rishikc/automate-lighthouse-audits-for-your-progressive-web-application-3lfc).

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