Skip to content

Instantly share code, notes, and snippets.

@simon-lang
Forked from jaseflow/pagespeed.js
Last active August 29, 2015 14:21
Show Gist options
  • Save simon-lang/1b4ac7626c1f50626970 to your computer and use it in GitHub Desktop.
Save simon-lang/1b4ac7626c1f50626970 to your computer and use it in GitHub Desktop.
var psi = require('psi');
var testUrl = 'http://www.expedia.com/Cancun-Hotels.d179995.Travel-Guide-Hotels?psislp=1';
module.exports = {
getScore: function(cb) {
psi(testUrl, function (err, data) {
cb(data.score);
});
}
};
@jaseflow
Copy link

got it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment