-
-
Save simon-lang/1b4ac7626c1f50626970 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
got it