Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gpagespeed

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gpagespeed - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

cli.js

2

index.js

@@ -5,3 +5,3 @@ var request = require('request')

module.exports = function(opts, callback){
if(!opts.key){
if(!opts.key && !opts.nokey){
return callback(new Error('Missing required param: key'), null);

@@ -8,0 +8,0 @@ }

{
"name": "gpagespeed",
"description": "Analyze a webpage with Google PageSpeed",
"version": "0.0.4",
"author": "Geir Gåsodden <geir.gasodden@pythonia.no>",
"version": "0.0.5",
"author": {
"name": "Geir Gåsodden",
"email": "geir.gasodden@pythonia.no"
},
"main": "index.js",
"bin": {
"gpagespeed": "cli.js"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha test/test.js --timeout 10s"
},
"files": [
"index.js",
"cli.js"
],
"repository": {

@@ -18,3 +31,4 @@ "type": "git",

"dependencies": {
"request": "^2.34.0"
"request": "^2.34.0",
"minimist": "0.0.8"
},

@@ -21,0 +35,0 @@ "devDependencies": {

@@ -1,4 +0,4 @@

#gpagespeed
#gpagespeed [![Build Status](https://travis-ci.org/zrrrzzt/gpagespeed.svg?branch=master)](https://travis-ci.org/zrrrzzt/gpagespeed)
Node.js module for analyzing a webpage with [Google PageSpeed Insights](https://developers.google.com/speed/docs/insights/v1/getting_started).
Node.js module/CLI app for analyzing a webpage with [Google PageSpeed Insights](https://developers.google.com/speed/docs/insights/v1/getting_started).

@@ -9,3 +9,3 @@ To use this you must Acquire an API key from [Google Developers Console](https://console.developers.google.com/).

##Installation##
##Installation
```

@@ -15,8 +15,12 @@ $ npm install gpagespeed

##Test##
or globally for the CLI app
```
$ npm install gpagespeed -g
```
##Test
Make sure you have [Mocha](http://visionmedia.github.io/mocha/) installed globally or just do an npm install in gpagespeed.
Update test/test.js with you API key
```

@@ -26,3 +30,3 @@ $ npm test

##Usage##
##Usage - Module

@@ -49,3 +53,15 @@ Pass an object with properties.

##License##
##Usage - CLI
```
$ gpagespeed --url=<url> --key=<key>
```
Optional params. You can see a list of all alternatives on the page for [Google PageSpeed standard query parameters](https://developers.google.com/speed/docs/insights/v1/getting_started#st_params).
```
$ gpagespeed --url=<url> --key=<key> --callback=<callback> --prettyprint=<true> --userIp=<userIp> --locale=<locale> --strategy=<desktop|mobile>
```
##License
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc