diff --git a/README.md b/README.md index 2f4599a..d40b73c 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -27,7 +27,7 @@ Add the plugin to your sitespeed.io configuration file: ```json { "plugins": { - "plugin-js": { + "plugin-javascript": { "enabled": true } } @@ -39,7 +39,7 @@ 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 @@ -47,7 +47,7 @@ sitespeed.io --plugins.add plugin-js 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 diff --git a/lib/index.js b/lib/index.js index 3dec69f..1663ae0 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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) { diff --git a/package.json b/package.json index a1e208a..60fb3aa 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "plugin-js", + "name": "plugin-javascript", "version": "2025.3.1", "type": "module", "exports": "./lib/index.js", @@ -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", @@ -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": {