gpagespeed
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -16,4 +16,4 @@ var request = require('request') | ||
} | ||
return callback(null, JSON.parse(body.toString())); | ||
return callback(null, body.toString()); | ||
}); | ||
}; |
{ | ||
"name": "gpagespeed", | ||
"description": "Analyze a webpage with Google PageSpeed", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Geir Gåsodden <geir.gasodden@pythonia.no>", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -5,4 +5,6 @@ #gpagespeed | ||
To use this you must Acquire an API key from [Google Developers Console](https://console.developers.google.com/) | ||
To use this you must Acquire an API key from [Google Developers Console](https://console.developers.google.com/). | ||
The module outputs the result as string. | ||
##Installation## | ||
@@ -9,0 +11,0 @@ ``` |
@@ -32,4 +32,5 @@ var pagespeed = require('../index') | ||
if(err) throw err; | ||
assert.equal('pagespeedonline#result', data.kind); | ||
assert.equal(200, data.responseCode); | ||
var res = JSON.parse(data); | ||
assert.equal('pagespeedonline#result', res.kind); | ||
assert.equal(200, res.responseCode); | ||
done(); | ||
@@ -36,0 +37,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4703
48
47