-
Notifications
You must be signed in to change notification settings - Fork 979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js support? #38
Comments
Sorry, there are not plans yet. From my understanding, a node.js implementation would be focused around decoding still-images instead of live-video, right? I haven't focused too much on still-image barcode reading, but making it compatible with node.js might be a good incentive. Do you know how to get around the fact that node.js does not support any DOM APIs like |
Hi, Please let me know if you need any support regarding node. |
just tested node-canvas... It attracts a rat tail of dependencies which are complicated to install and everything else than stable. at the repo are 220 tickets open o.O So canvas is not trivial in node sorry :/. Any chance to abstact the logic behind? I found https://www.npmjs.com/package/get-pixels to read pixel informations from static image, but not tested yet |
Thanks for the research so far. Abstracting the image reading depending on the system might be best way to go. get-pixels seems like a good start, although I have just scrolled through the dependencies and docs. This could definitely work for server-side environments. Would you create a separate build for server and client, or simply combine them in one file? I don't have much experience in creating a library which can be run on node (using different features) and the client. What I'm afraid of is, that the library gets bloated when I create a distributed version for the client that also includes the node-js part. |
I suggest to keep it separate and include shared sources from https://github.com/serratus/quaggaJS/tree/master/src with node's Here is a very simple setup . |
During my research I discovered the presence of another field in the |
Did not know this field. Interesting info. Do you use require.js to support amd or is it just a part of your build process? In this case you could simply concat all files and publish your library to public scope. For example like jquery which runs also in both environments . |
Basically, I use require.js during development simply for dependency management and modularization. This also helps packaging the library in a single file. Anyways, yesterday I was tinkering on the node.js support and created a new branch (a042422) for that. Decoding static images should basically work, but there is still a lot to do. This is just an experiment. |
Are there plans to support node.js? Best regards
The text was updated successfully, but these errors were encountered: