# @elsevier/nuxt-performance-audits

> Audit the performance of Nuxt projects

Latest version **1.0.2** (published 2018-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @elsevier/nuxt-performance-audits
pnpm add @elsevier/nuxt-performance-audits
yarn add @elsevier/nuxt-performance-audits
bun add @elsevier/nuxt-performance-audits
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-06-08 |
| First published | 2018-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 193.5 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | 75lb, amysmart, b.keating, b.thomas.2, bjd, camille-else, chrisgedrim, dlcc, elisebeer, jenkinsw1, johnwards, kevinp93, kimael, klikas, kpturner_ltd, liquorvicar, ltatakis, madhu-rao, marcusnoble, ninjanails2, oppiniated, overcaffed, richdouglas, rubybeaupierre, sam_bowler, tseronisk |

## Links

- npm: https://www.npmjs.com/package/@elsevier/nuxt-performance-audits
- Repository: https://github.com/elsevier-io/nuxt-performance-audits
- Homepage: https://github.com/elsevier-io/nuxt-performance-audits#readme
- Issues: https://github.com/elsevier-io/nuxt-performance-audits/issues
- npm.io page: https://npm.io/package/@elsevier/nuxt-performance-audits

## Dependencies (5)

- [nuxt](https://npm.io/package/nuxt.md) ^1.4.1
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [gzip-size](https://npm.io/package/gzip-size.md) ^4.1.0
- [prettysize](https://npm.io/package/prettysize.md) ^1.1.0
- [@types/node](https://npm.io/package/@types/node.md) ^10.3.2

## Recent versions

- 1.0.2 (latest) — 2018-06-08
- 1.0.1 — 2018-06-08

## README

# Nuxt Performance Audits 🚀

Audit the performance of Nuxt projects.

![Example Output](https://cdn.rawgit.com/elsevier-io/nuxt-performance-audits/master/example-output.png)

## Usage

Pass a nuxt instance to the `NuxtPerformanceAudits` class, optionally passing your settings as an argument. Then call `run()`.

```js
import { Nuxt } from 'nuxt';
import * as nuxtConfig from './nuxt.config';
import NuxtPerformanceAudits from '@elsevier/nuxt-performance-audits';

const nuxt = new Nuxt(nuxtConfig);
const mySettings = {};

new NuxtPerformanceAudits(mySettings).run(nuxt);
```

You'll probably want to run the file as an NPM script and pass `NODE_ENV=production` to ensure that production-built assets are assessed, e.g. (if the file above is called run-performance-audits.js):

```json
{
    "scripts": {
        "perf": "NODE_ENV=production node run-performance-audits.js"
    },
}
```

## Audits

### Asset size

Checks the size of assets against a specified limit.

#### Settings

- **gzip** (default: true): check estimated file size after gzip
- **jsAssetSizeLimit** (default: 80000): file size limit, in bytes
- **warningThresholdPercentage** (default: 80): percentage at which to warn users that they are nearing the limit

---
_Source: https://npm.io/package/@elsevier/nuxt-performance-audits · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
