samedi 30 mai 2015

How to use Node.js to compare text and image files for equality?

I'm writing a spec using Jasmine Node and I'd like to compare files on disk with files in memory to check that they're the same. Most of the files are text, but one is an image file (PNG).

How can this can be done? Do you know of a utility library that helps with this?

Aucun commentaire:

Enregistrer un commentaire