Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# plugin-js
# plugin-javascript
Javascript plugin for sitespeed.io

## Overview

The `plugin-js` is a plugin for [sitespeed.io](https://www.sitespeed.io/) that helps identify and log "Javascript" (JS) errors during web testing. It integrates with sitespeed.io to provide detailed information about JS errors.
The `plugin-javascript` is a plugin for [sitespeed.io](https://www.sitespeed.io/) that helps identify and log "Javascript" (JS) errors during web testing. It integrates with sitespeed.io to provide detailed information about JS errors.

## Features

Expand All @@ -13,7 +13,7 @@ The `plugin-js` is a plugin for [sitespeed.io](https://www.sitespeed.io/) that h
To install the plugin, run the following command:

```sh
npm install plugin-js
npm install plugin-javascript
```

## Usage
Expand All @@ -27,7 +27,7 @@ Add the plugin to your sitespeed.io configuration file:
```json
{
"plugins": {
"plugin-js": {
"plugin-javascript": {
"enabled": true
}
}
Expand All @@ -39,15 +39,15 @@ Add the plugin to your sitespeed.io configuration file:
You can also enable the plugin via the command line:

```sh
sitespeed.io --plugins.add plugin-js
sitespeed.io --plugins.add plugin-javascript
```

## Example

Here is an example of how to use the plugin with sitespeed.io:

```sh
sitespeed.io https://www.example.com --plugins.add plugin-js
sitespeed.io https://www.example.com --plugins.add plugin-javascript
```

## Development
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { SitespeedioPlugin } from '@sitespeed.io/plugin';
import { HarAnalyzer } from './harAnalyzer.js';

// https://www.sitespeed.io/documentation/sitespeed.io/plugins/#create-your-own-plugin
// node bin\sitespeed.js -b edge -n 1 --plugins.add analysisstorer --plugins.add ../../../plugin-js/lib/index.js --browsertime.chrome.includeResponseBodies all https://webperf.se
// node bin\sitespeed.js -b edge -n 1 --plugins.add analysisstorer --plugins.add ../../../plugin-javascript/lib/index.js --browsertime.chrome.includeResponseBodies all https://webperf.se

const pluginname = 'webperf-plugin-js'
const pluginname = 'webperf-plugin-javascript'

export default class JavascriptPlugin extends SitespeedioPlugin {
constructor(options, context, queue) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "plugin-js",
"name": "plugin-javascript",
"version": "2025.3.1",
"type": "module",
"exports": "./lib/index.js",
Expand All @@ -9,7 +9,7 @@
"description": "Javascript plugin for sitespeed.io",
"repository": {
"type": "git",
"url": "git+https://github.com/Webperf-se/plugin-js.git"
"url": "git+https://github.com/Webperf-se/plugin-javascript.git"
},
"keywords": [
"sitespeed.io",
Expand All @@ -21,7 +21,7 @@
],
"license": "MIT",
"bugs": {
"url": "https://github.com/Webperf-se/plugin-js/issues"
"url": "https://github.com/Webperf-se/plugin-javascript/issues"
},
"husky": {
"hooks": {
Expand Down
Loading