puffinsoft / jscanify

Open-source Javascript mobile document scanner.
https://puffinsoft.github.io/jscanify/
MIT License
956 stars 52 forks source link

NodeJS support #1

Closed W4G1 closed 1 year ago

W4G1 commented 1 year ago

On the website it says:

It can run in the browser or on a server with NodeJS.

When importing the library in Node however, I get the following error:

Uncaught ReferenceError: document is not defined
ColonelParrot commented 1 year ago

Thanks for the report! I see the issue and I'll get a patch out as soon as possible.

Edit: there is a deeper issue that I noticed which will unfortunately be quite complicated to fix. I'm on it!

ColonelParrot commented 1 year ago

Unfortunately, I'm swamped at the moment. Could probably get a patch out by early May. Thanks for the patience.

ColonelParrot commented 1 year ago

Hello, Thanks for the patience! This has now been patched in v1.1.0. Make sure to check the wiki section Use on NodeJS - the usage is slightly different.

If you run into any problems please let me know 👍