Skip to content

Instantly share code, notes, and snippets.

@rjcorwin
Created June 17, 2014 18:18
Show Gist options
  • Select an option

  • Save rjcorwin/b0798519b711f1acfada to your computer and use it in GitHub Desktop.

Select an option

Save rjcorwin/b0798519b711f1acfada to your computer and use it in GitHub Desktop.
var fs = require('fs')
var New = fs.readFileSync('new.html', 'utf-8')
New = New.replace(/\s/g, '')
var Old = fs.readFileSync('old.html', 'utf-8')
Old = Old.replace(/\s/g, '')
if(New == Old) {
console.log('same')
}
else {
console.log(Old); console.log(New)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment