Node.js library for testing URL by PageSpeed Insight with Gulp.js compatibilities
Before start you need to generate Google API key and add Google Search Console API into your Google APIs dashboard.
https://developers.google.com/speed/docs/insights/v5/get-started
npm i html-speedyarn add html-speedimport htmlSpeed from 'html-speed'
const apiKey = ''
const url = ''
htmlSpeed(url, apiKey)import gulp from 'gulp'
const { parallel } = gulp
import htmlSpeed from 'html-speed'
const apiKey = ''
const url = ''
const htmlSpeedRes = () =>
htmlSpeed(url, apiKey)
export default
parallel(
htmlSpeedRes
)- https://web.dev/performance-scoring/
- https://developers.google.com/speed/docs/insights/v5/get-started
