Socket
Book a DemoInstallSign in
Socket

pagespeed-insights-typescript

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pagespeed-insights-typescript

Typescript library for the PageSpeed Insight API

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

PageSpeed Insight API

Typescript library to interact with the PageSpeed Insight API.

Installation

The easiest way to install pagespeed-insights-typescript is from NPM. You can run the command below from your project directory to install the library:

npm install pagespeed-insights-typescript

Then in your code:

import PageSpeedInsights from "pagespeed-insights-typescript";

const client = new PageSpeedInsights();

Setup an API Key

const client = new PageSpeedInsights({ apiKey: "xxx" });

Getting the Insights

const client = new PageSpeedInsights();
client.run("https://example.com").then(async (res) => console.log(await res.json()));

FAQs

Package last updated on 27 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.