![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@dreipol/lighthouse-audits
Advanced tools
Collection of useful lighthouse audits
npm i @dreipol/lighthouse-audits --save
This module provides some audits for deeper inspections and better quality of your website/project.
To add an audit to your lighthouse configuration you simply import this module. This module exports a couple of object (See API below). Those modules contain audits and gatherers. Those can be simply be added to your already existent lighthouse configuration.
Example
const {
PSI,
} = require('@dreipol/lighthouse-audits');
...
passes: [
{
passName: 'defaultPass',
recordTrace: true,
pauseAfterLoadMs: 10000,
networkQuietThresholdMs: 10000,
cpuQuietThresholdMs: 10000,
gatherers: [
PSI.PSIGatherer,
'url',
'scripts',
'css-usage',
'viewport',
'viewport-dimensions',
...
...
audits: [
PSI.PSISpeedScoreAudit,
'service-worker',
'viewport',
'without-javascript',
Now we've added the gatherer
and the audit
. But if we run the audits now, we wont see the result of the audit in the
report, since we didn't added the category where the audit should be added at. There are two options.
First is to add all the categories and assign the audits by your own (recommended when not using the default)
categories: {
dreipol: {
name: 'Dreipol Audits',
description: 'Dreipol audits',
audits: [
{ id: '<AUDIT_NAME>', weight: 5 },
],
},
psi: {
name: 'PSI',
description: 'Page Speed Insight audits',
audits: [
{ id: 'psi-speed-score', weight: 5 },
...
],
}
Or you can use the default categories exported by this module. Those default categories are available under Categories
Exmaple in your lighthouse config:
const {
Categories,
} = require('@dreipol/lighthouse-audits');
...
categories: {
psi: Categories.PSI,
dreipol: Categories.Dreipol,
}
Structure of exported module. You can use these to add them as audits/gatherers
{name: 'plain-email-audit'}
{name: 'brokenlink-audit'}
{name: 'psi-speed-score'}
{name: 'psi-usability-score'}
{name: 'psi-html'}
{name: 'psi-css'}
{name: 'psi-img'}
{name: 'psi-js'}
{name: 'psi-js-resources'}
{name: 'psi-css-resources'}
FAQs
Collection of default audits from dreipol
We found that @dreipol/lighthouse-audits demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.