kozakdenys/qr-code-styling

Is it available in NodeJS?

sunny-2504 opened this issue · 5 comments

I'm trying to create an API in NodeJS. I need an example of how to use it in NodeJS

@sunny-2504 did you try to use it in Node? I bet you did.
Did you see the error saying "document.createElement is not defined"? I bet you did :)
So is it available in Node?

Sorry for being a bit salty but it is a bit funny :)

Yes, it is available in NodeJS. You are so dumb that you can't even understand my question. You thought that I would really use document.CreateElement in NodeJS? I bet you did! FYI it is available in NodeJS

@sunny-2504 haha, don't be mad mate! The library uses document.createElement internally, so you can't use it (the library) in Node xD

FYI this fork works out the box in Node.js: https://github.com/Loskir/styled-qr-code