1

I'm trying to use the resemblejs library (http://huddle.github.io/Resemble.js/) to compare two images. However, when I have created a directory and added resemblejs as a dependency, but when I try to run the following: nodejs test.js, I get the following error

var api = resemble(fileData).onComplete(function(data){ ^ ReferenceError: resemble is not defined

I've never used NodeJS before, so it might be something really simple. Any ideas?

1 Answers1

2

You can't get directly node module instance from it. You can check this issue on its repo. node-resemble is an Node port of Resemble.js.

Hope it will be useful for you.

Arkar Aung
  • 3,554
  • 1
  • 16
  • 25