# grunt-psi-html-report

> Creates html report of Google's PageSpeed Insights scores for multiple urls.

Latest version **0.1.0** (published 2018-06-03) · 0 weekly downloads

## Install

```sh
npm install grunt-psi-html-report
pnpm add grunt-psi-html-report
yarn add grunt-psi-html-report
bun add grunt-psi-html-report
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-06-03 |
| First published | 2018-06-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 1 |
| Unpacked size | 68.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Omkar Swami |
| Maintainers | omkarswami |
| Keywords | gruntplugin, pagespeed, psi, pagespeed test, html report |

## Links

- npm: https://www.npmjs.com/package/grunt-psi-html-report
- Repository: https://github.com/omkarswami/grunt-psi-html-report
- Issues: https://github.com/omkarswami/grunt-psi-html-report/issues
- npm.io page: https://npm.io/package/grunt-psi-html-report

## Dependencies (1)

- [psi](https://npm.io/package/psi.md) ^3.1.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-06-03

## README

# grunt-psi-html-report

> Creates html report of Google's PageSpeed Insights scores for multiple urls.

## Getting Started
This plugin requires Grunt `~0.4.5`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-psi-html-report --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-psi-html-report');
```

## The "psi_html_report" task

### Overview
In your project's Gruntfile, add a section named `psi_html_report` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  psi_html_report: {
    default_options: {
        options: {
          urls:["https://www.google.com","https://www.youtube.com"]
        }, 
      }
  },
});
```

### Options

#### options.urls
Type: `Array`
Default value: `["https://www.google.com"]`

An array of urls on which PageSpeed Insights psi command is to be run.


### Usage Examples

#### Default Options
In this example, there are two urls in array. Results can be seen in screenshot below.

```js
grunt.initConfig({
  psi_html_report: {
    default_options: {
        options: {
          urls:["https://www.youtube.com","https://www.twitter.com"]
        }, 
      }
  },
});
```
![HTML Report](/assets/example-report.png?raw=true "Report Example")


## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History
_(Nothing yet)_

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