Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 255 Bytes
let WPVersion = require('./index.js');
let samples = [
'wordpress.org',
'metro.co.uk'
];
samples.forEach(sample => {
WPVersion.check(sample).then(version => {
console.log(version + '\t' + sample);
}).catch(error => {
console.log(error);
});
});