Skip to content

Node.js library for PageIsight Test with Console output

License

Notifications You must be signed in to change notification settings

Frontend-Layers/html-speed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Speed Test

Node.js library for testing URL by PageSpeed Insight with Gulp.js compatibilities

License:MIT npm

screenshot

How to install

API key

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

npm i html-speed

yarn

yarn add html-speed

How to use

import htmlSpeed from 'html-speed'

const apiKey = ''
const url = ''

htmlSpeed(url, apiKey)

Gulp.js integration

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
  )

Reference


MIT License

Releases

No releases published

Packages

No packages published